Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,11 +20,11 @@ def greet(text):
|
|
20 |
wave = model.tts(t)
|
21 |
|
22 |
yield 22025,wave.view(-1).cpu().numpy()
|
23 |
-
except
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
-
|
29 |
-
demo = gr.Interface(fn=greet, inputs="text", outputs=
|
30 |
demo.launch()
|
|
|
20 |
wave = model.tts(t)
|
21 |
|
22 |
yield 22025,wave.view(-1).cpu().numpy()
|
23 |
+
except :pass
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
+
audio_player = gr.Audio(label="أ audio",streaming=True)
|
29 |
+
demo = gr.Interface(fn=greet, inputs="text", outputs=audio_player)
|
30 |
demo.launch()
|