Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -158,7 +158,7 @@ def new_func(user_window):
|
|
158 |
|
159 |
def play_sound(txt):
|
160 |
if len(txt) < 10:
|
161 |
-
gr.Info(message='Dialog must be at least 10 characters long',duration=4)
|
162 |
return
|
163 |
speech_path = dataDir + 'speech.wav'
|
164 |
response = client.audio.speech.create(model='tts-1', voice='fable', input=txt)
|
@@ -229,4 +229,4 @@ with gr.Blocks() as demo:
|
|
229 |
reset_button.add(audio_widget)
|
230 |
speak_dialog.click(play_sound, output_window, None)
|
231 |
output_window.change(set_speak, output_window, speak_dialog)
|
232 |
-
demo.
|
|
|
158 |
|
159 |
def play_sound(txt):
|
160 |
if len(txt) < 10:
|
161 |
+
# gr.Info(message='Dialog must be at least 10 characters long',duration=4)
|
162 |
return
|
163 |
speech_path = dataDir + 'speech.wav'
|
164 |
response = client.audio.speech.create(model='tts-1', voice='fable', input=txt)
|
|
|
229 |
reset_button.add(audio_widget)
|
230 |
speak_dialog.click(play_sound, output_window, None)
|
231 |
output_window.change(set_speak, output_window, speak_dialog)
|
232 |
+
demo.launch(share=True)
|