barghavani commited on
Commit
a4aa700
·
1 Parent(s): e0c75db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -13
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=[["زین همرهان سست عناصر، دلم گرفت.", MODEL_NAMES[0], ""]], # Example should include a speaker name for multispeaker models
164
- title='Persian TTS Playground',
165
  description="""
166
- ### Persian text to speech model demo.
167
-
168
-
169
- #### Pick a speaker for MultiSpeaker models. (for single speaker go for speaker-0)
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()