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

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="من با ژاله جلسه داشتم.", 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="text")
12
  iface.launch()