SeyedAli commited on
Commit
3a1d118
1 Parent(s): 1692178

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ import torchaudio
8
  model = VitsModel.from_pretrained("SeyedAli/Persian-Speech-synthesis")
9
  tokenizer = AutoTokenizer.from_pretrained("SeyedAli/Persian-Speech-synthesis")
10
  text_input = gr.TextArea(label="متن فارسی",text_align="right",rtl=True,type="text")
11
- audio_output = gr.Audio(label="صوت گفتار فارسی",rtl=True, type="filepath")
12
  def TTS(text):
13
  inputs = tokenizer(text, return_tensors="pt")
14
  with torch.no_grad():
 
8
  model = VitsModel.from_pretrained("SeyedAli/Persian-Speech-synthesis")
9
  tokenizer = AutoTokenizer.from_pretrained("SeyedAli/Persian-Speech-synthesis")
10
  text_input = gr.TextArea(label="متن فارسی",text_align="right",rtl=True,type="text")
11
+ audio_output = gr.Audio(label="صوت گفتار فارسی", type="filepath")
12
  def TTS(text):
13
  inputs = tokenizer(text, return_tensors="pt")
14
  with torch.no_grad():