Skip to content

Commit

Permalink
Getting language feedback first
Browse files Browse the repository at this point in the history
  • Loading branch information
WeberJulian committed Dec 11, 2023
1 parent 07bda4e commit c2f15ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@

try:
print("Getting metadata from server ...")
STUDIO_SPEAKERS = requests.get(SERVER_URL + "/studio_speakers").json()
print("Available studio speakers:", ", ".join(STUDIO_SPEAKERS.keys()))
LANUGAGES = requests.get(SERVER_URL + "/languages").json()
print("Available languages:", ", ".join(LANUGAGES))
STUDIO_SPEAKERS = requests.get(SERVER_URL + "/studio_speakers").json()
print("Available studio speakers:", ", ".join(STUDIO_SPEAKERS.keys()))
except:
raise Exception("Please make sure the server is running first.")

Expand Down Expand Up @@ -101,7 +101,7 @@ def tts(text, speaker_type, speaker_name_studio, speaker_name_custom, lang):
if __name__ == "__main__":
demo.launch(
share=False,
debug=True,
debug=False,
server_port=3009,
server_name="0.0.0.0",
)

0 comments on commit c2f15ec

Please sign in to comment.