alexl1973 commited on
Commit
6d4e883
·
verified ·
1 Parent(s): 628e06a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -196,16 +196,16 @@ def predict(
196
  None,
197
  None,
198
  )
199
- if len(prompt) > 200:
200
- gr.Warning(
201
- "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"
202
- )
203
- return (
204
- None,
205
- None,
206
- None,
207
- None,
208
- )
209
  global DEVICE_ASSERT_DETECTED
210
  if DEVICE_ASSERT_DETECTED:
211
  global DEVICE_ASSERT_PROMPT
 
196
  None,
197
  None,
198
  )
199
+ #if len(prompt) > 200:
200
+ # gr.Warning(
201
+ # "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"
202
+ # )
203
+ # return (
204
+ # None,
205
+ # None,
206
+ # None,
207
+ # None,
208
+ # )
209
  global DEVICE_ASSERT_DETECTED
210
  if DEVICE_ASSERT_DETECTED:
211
  global DEVICE_ASSERT_PROMPT