antoniomae commited on
Commit
349b7fc
·
verified ·
1 Parent(s): 9b37515

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -17
app.py CHANGED
@@ -199,7 +199,7 @@ def predict(
199
  )
200
  if len(prompt) > 200:
201
  gr.Warning(
202
- "Text length limited to 200 characters for this demo, please try shorter text. You can clone this space and edit code for your own usage"
203
  )
204
  return (
205
  None,
@@ -626,23 +626,9 @@ with gr.Blocks(analytics_enabled=False) as demo:
626
  label="Language",
627
  info="Select an output language for the synthesised speech",
628
  choices=[
629
- "en",
630
- "es",
631
- "fr",
632
- "de",
633
- "it",
634
  "pt",
635
- "pl",
636
- "tr",
637
- "ru",
638
- "nl",
639
- "cs",
640
- "ar",
641
- "zh-cn",
642
- "ja",
643
- "ko",
644
- "hu",
645
- "hi"
646
  ],
647
  max_choices=1,
648
  value="en",
 
199
  )
200
  if len(prompt) > 200:
201
  gr.Warning(
202
+ "Text length limited to 1000 characters for this demo, please try shorter text. You can clone this space and edit code for your own usage"
203
  )
204
  return (
205
  None,
 
626
  label="Language",
627
  info="Select an output language for the synthesised speech",
628
  choices=[
629
+
 
 
 
 
630
  "pt",
631
+
 
 
 
 
 
 
 
 
 
 
632
  ],
633
  max_choices=1,
634
  value="en",