Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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="صوت گفتار فارسی",
|
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():
|