Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,27 +37,30 @@ def tts(text: str):
|
|
| 37 |
|
| 38 |
description="""
|
| 39 |
This is a demo of persian text to speech model.
|
|
|
|
|
|
|
| 40 |
Model trained on this dataset : https://www.kaggle.com/datasets/magnoliasis/persian-tts-dataset-famale
|
| 41 |
|
|
|
|
|
|
|
| 42 |
"""
|
| 43 |
article= ""
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
| 45 |
iface = gr.Interface(
|
| 46 |
fn=tts,
|
| 47 |
inputs=[
|
| 48 |
gr.Textbox(
|
| 49 |
label="Text",
|
| 50 |
-
|
| 51 |
)
|
| 52 |
],
|
| 53 |
outputs=gr.Audio(label="Output",type='filepath'),
|
| 54 |
title="🗣️Persian ttt - glow_tts 🗣️",
|
| 55 |
-
theme="grass",
|
| 56 |
description=description,
|
| 57 |
article=article,
|
| 58 |
-
allow_flagging=False,
|
| 59 |
-
flagging_options=['error', 'bad-quality', 'wrong-pronounciation'],
|
| 60 |
-
layout="vertical",
|
| 61 |
live=False
|
| 62 |
)
|
| 63 |
iface.launch(share=False)
|
|
|
|
| 37 |
|
| 38 |
description="""
|
| 39 |
This is a demo of persian text to speech model.
|
| 40 |
+
|
| 41 |
+
|
| 42 |
Model trained on this dataset : https://www.kaggle.com/datasets/magnoliasis/persian-tts-dataset-famale
|
| 43 |
|
| 44 |
+
|
| 45 |
+
|
| 46 |
"""
|
| 47 |
article= ""
|
| 48 |
+
examples=[
|
| 49 |
+
["مثنوی یکی از قالب های شعری است ک هر بیت قافیه ی جداگانه دارد"],
|
| 50 |
+
["در گلو ماند خس او سالها، چیست آن خس مهر جاه و مالها"],
|
| 51 |
+
]
|
| 52 |
iface = gr.Interface(
|
| 53 |
fn=tts,
|
| 54 |
inputs=[
|
| 55 |
gr.Textbox(
|
| 56 |
label="Text",
|
| 57 |
+
value="زندگی فقط یک بار است؛ از آن به خوبی استفاده کن",
|
| 58 |
)
|
| 59 |
],
|
| 60 |
outputs=gr.Audio(label="Output",type='filepath'),
|
| 61 |
title="🗣️Persian ttt - glow_tts 🗣️",
|
|
|
|
| 62 |
description=description,
|
| 63 |
article=article,
|
|
|
|
|
|
|
|
|
|
| 64 |
live=False
|
| 65 |
)
|
| 66 |
iface.launch(share=False)
|