Spaces:
Running
Running
oscarwang2
commited on
Commit
•
8f19731
1
Parent(s):
b564786
Update app.py
Browse files
app.py
CHANGED
@@ -116,10 +116,10 @@ def predict(prompt, style, audio_file_pth, speed, agree):
|
|
116 |
None,
|
117 |
None,
|
118 |
)
|
119 |
-
if prompt_length >
|
120 |
text_hint += f"[ERROR] Text length limited to 50 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
|
123 |
)
|
124 |
return (
|
125 |
text_hint,
|
|
|
116 |
None,
|
117 |
None,
|
118 |
)
|
119 |
+
if prompt_length > 50000:
|
120 |
text_hint += f"[ERROR] Text length limited to 50 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 50000 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"
|
123 |
)
|
124 |
return (
|
125 |
text_hint,
|