Spaces:
Runtime error
Runtime error
Update app.py
#81
by
techbeam101
- 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) > 2000:
|
| 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 |
)
|