barghavani commited on
Commit
17514fc
·
1 Parent(s): 9f19014

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -150,7 +150,7 @@ def update_options(model_name):
150
  # return empty options if not multi-speaker
151
  return []
152
  links = """
153
- | 🐸💬 **PersianTTS** | <a style="display:inline-block" href='https://github.com/UNHSAILLab/Persian-TTS'><img src='https://img.shields.io/github/stars/coqui-ai/TTS?style=social' /></a>|
154
 
155
  """
156
  # Create Gradio interface
@@ -164,7 +164,8 @@ iface = gr.Interface(
164
  gr.Dropdown(label="Select Speaker", choices=update_options(MODEL_NAMES[1]), type="value", default=None)
165
  ],
166
  outputs=gr.Audio(label="Output", type='filepath'),
167
- examples=[["زبان فارسی یکی از زبان های زنده و ارزشمند دنیاست که حدود ده درصد محتوای اینترنتی کل جهان به زبان فارسی است.", MODEL_NAMES[0], ""]], # Example should include a speaker name for multispeaker models
 
168
  title="Persian SAIL🐸 TTS",
169
  description="""
170
  This demo is currently running **VITS** support Persian Language.
 
150
  # return empty options if not multi-speaker
151
  return []
152
  links = """
153
+ 🐸💬 **PersianTTS** <a style="display:inline-block" href='https://github.com/UNHSAILLab/Persian-TTS'><img src='https://img.shields.io/github/stars/coqui-ai/TTS?style=social' /></a>|
154
 
155
  """
156
  # Create Gradio interface
 
164
  gr.Dropdown(label="Select Speaker", choices=update_options(MODEL_NAMES[1]), type="value", default=None)
165
  ],
166
  outputs=gr.Audio(label="Output", type='filepath'),
167
+ examples=[["زبان فارسی یکی از زبان های زنده و ارزشمند دنیاست که حدود ده درصد محتوای اینترنتی کل جهان به زبان فارسی است.", MODEL_NAMES[0], "speaker-0"],
168
+ ["رسول پرویزی خودش را نقال می‌داند. با نقل قصه‌هایی به شیرینی قند و شکر و البته طنز تلخی که در گوشه‌گوشه‌ کتاب جای دارد. او از مردم شیراز حرف می‌زند. طبقه‌ای‌ ساده و بی‌آلایش. آن‌ها در دورانی زندگی می‌کردند که کمتر کسی باسواد بود.", MODEL_NAMES[0], "speaker-0"]], # Example should include a speaker name for multispeaker models
169
  title="Persian SAIL🐸 TTS",
170
  description="""
171
  This demo is currently running **VITS** support Persian Language.