SeyedAli commited on
Commit
d814bb0
·
1 Parent(s): 2a7053f

Update app.py

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