SeyedAli commited on
Commit
55b66e4
·
1 Parent(s): 8d12a0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=pipe(text))
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()