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