Spaces:
Running
on
T4
Running
on
T4
Update app.py
#20
by
Vlad128
- opened
app.py
CHANGED
@@ -197,7 +197,7 @@ def predict(
|
|
197 |
None,
|
198 |
None,
|
199 |
)
|
200 |
-
if len(prompt) >
|
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 |
)
|
|
|
197 |
None,
|
198 |
None,
|
199 |
)
|
200 |
+
if len(prompt) > 1000:
|
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 |
)
|