Spaces:
Build error
Build error
Commit
·
a4aa700
1
Parent(s):
e0c75db
Update app.py
Browse files
app.py
CHANGED
@@ -151,6 +151,7 @@ def update_options(model_name):
|
|
151 |
return []
|
152 |
|
153 |
# Create Gradio interface
|
|
|
154 |
iface = gr.Interface(
|
155 |
fn=synthesize,
|
156 |
inputs=[
|
@@ -160,23 +161,17 @@ iface = gr.Interface(
|
|
160 |
gr.Dropdown(label="Select Speaker", choices=update_options(MODEL_NAMES[1]), type="value", default=None)
|
161 |
],
|
162 |
outputs=gr.Audio(label="Output", type='filepath'),
|
163 |
-
examples=[["
|
164 |
-
title=
|
165 |
description="""
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
""",
|
171 |
-
badges = """
|
172 |
-
<div style="display: flex">
|
173 |
-
<span style="margin-right: 5px">
|
174 |
-
[ ![GitHub](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white) ](https://github.com/UNHSAILLab/Persian-TTS)
|
175 |
-
</span>
|
176 |
-
</div>
|
177 |
""",
|
178 |
article="",
|
179 |
live=False
|
180 |
)
|
181 |
|
|
|
182 |
iface.launch()
|
|
|
151 |
return []
|
152 |
|
153 |
# Create Gradio interface
|
154 |
+
|
155 |
iface = gr.Interface(
|
156 |
fn=synthesize,
|
157 |
inputs=[
|
|
|
161 |
gr.Dropdown(label="Select Speaker", choices=update_options(MODEL_NAMES[1]), type="value", default=None)
|
162 |
],
|
163 |
outputs=gr.Audio(label="Output", type='filepath'),
|
164 |
+
examples=[["زبان فارسی یکی از زبان های زنده و ارزشمند دنیاست که حدود ده درصد محتوای اینترنتی کل جهان به زبان فارسی است.", MODEL_NAMES[0], ""]], # Example should include a speaker name for multispeaker models
|
165 |
+
title="Persian SAIL🐸 TTS",
|
166 |
description="""
|
167 |
+
This demo is currently running **VITS** support Persian Language.
|
168 |
+
**VITS** is a text-to-speech model that translates written text into natural-sounding, human-like speech. It uses a combination of variational autoencoders and generative adversarial networks to create voice outputs that are realistic and can be customized for various applications, ranging from virtual assistants to audiobook narration.
|
169 |
+
This is the same model that powers our creator application [SAIL LAB UNH](https://github.com/UNHSAILLab/Persian-TTS).
|
170 |
+
Leave a star 🌟 on Github if you use and like our model!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
171 |
""",
|
172 |
article="",
|
173 |
live=False
|
174 |
)
|
175 |
|
176 |
+
|
177 |
iface.launch()
|