wasmdashai commited on
Commit
0461481
·
verified ·
1 Parent(s): dcb69bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 error:pass
24
 
25
 
26
 
27
 
28
-
29
- demo = gr.Interface(fn=greet, inputs="text", outputs="audio")
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()