Spaces:
Running
on
T4
Running
on
T4
Update app.py
#41
by
Juno360219
- opened
app.py
CHANGED
@@ -197,9 +197,9 @@ def predict(
|
|
197 |
None,
|
198 |
None,
|
199 |
)
|
200 |
-
if len(prompt) >
|
201 |
gr.Warning(
|
202 |
-
"Text length limited to
|
203 |
)
|
204 |
return (
|
205 |
None,
|
|
|
197 |
None,
|
198 |
None,
|
199 |
)
|
200 |
+
if len(prompt) > 1000:
|
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,
|