oscarwang2 commited on
Commit
ff3c2ad
1 Parent(s): b58dc68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -116,7 +116,7 @@ def predict(prompt, style, audio_file_pth, speed, agree):
116
  None,
117
  None,
118
  )
119
- if prompt_length > 100:
120
  text_hint += f"[ERROR] Text length limited to 100 words for this demo, please try shorter text. You can clone our open-source repo or try it on our website https://app.myshell.ai/robot-workshop/widget/174760057433406749 \n"
121
  gr.Warning(
122
  "Text length limited to 100 words for this demo, please try shorter text. You can clone our open-source repo or try it on our website https://app.myshell.ai/robot-workshop/widget/174760057433406749"
 
116
  None,
117
  None,
118
  )
119
+ if prompt_length > 50:
120
  text_hint += f"[ERROR] Text length limited to 100 words for this demo, please try shorter text. You can clone our open-source repo or try it on our website https://app.myshell.ai/robot-workshop/widget/174760057433406749 \n"
121
  gr.Warning(
122
  "Text length limited to 100 words for this demo, please try shorter text. You can clone our open-source repo or try it on our website https://app.myshell.ai/robot-workshop/widget/174760057433406749"