Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,5 +8,5 @@ def TTS(text):
|
|
| 8 |
tokenizer = AutoTokenizer.from_pretrained("SeyedAli/Persian-Speech-synthesis")
|
| 9 |
pipe = pipeline("text-to-speech", model=model,tokenizer=tokenizer)
|
| 10 |
return pipe(text)
|
| 11 |
-
iface = gr.Interface(fn=TTS, inputs="text", outputs="
|
| 12 |
iface.launch()
|
|
|
|
| 8 |
tokenizer = AutoTokenizer.from_pretrained("SeyedAli/Persian-Speech-synthesis")
|
| 9 |
pipe = pipeline("text-to-speech", model=model,tokenizer=tokenizer)
|
| 10 |
return pipe(text)
|
| 11 |
+
iface = gr.Interface(fn=TTS, inputs="text", outputs="audio")
|
| 12 |
iface.launch()
|