Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,9 +3,10 @@ from models.tacotron2 import Tacotron2Wave
|
|
3 |
model = Tacotron2Wave('pretrained/tacotron2_ar_adv.pth')
|
4 |
#model = model.cuda()
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
|
|
9 |
|
10 |
-
demo = gr.Interface(fn=greet, inputs="text", outputs="
|
11 |
demo.launch()
|
|
|
3 |
model = Tacotron2Wave('pretrained/tacotron2_ar_adv.pth')
|
4 |
#model = model.cuda()
|
5 |
|
6 |
+
def greet(text):
|
7 |
+
wave = model.tts("يعطوني على حسب العذر التمديد من اسبوع الى اسبوعين ")
|
8 |
+
|
9 |
+
return 22025,wave.view(-1).cpu().numpy()
|
10 |
|
11 |
+
demo = gr.Interface(fn=greet, inputs="text", outputs="audio")
|
12 |
demo.launch()
|