martillopartbsc
commited on
Update infer_onnx.py
Browse files- infer_onnx.py +1 -1
infer_onnx.py
CHANGED
@@ -26,7 +26,7 @@ def intersperse(lst, item):
|
|
26 |
|
27 |
def check_input(text):
|
28 |
if len(text) > 500:
|
29 |
-
raise gr.Error("Wrong input, more than
|
30 |
else:
|
31 |
return text
|
32 |
|
|
|
26 |
|
27 |
def check_input(text):
|
28 |
if len(text) > 500:
|
29 |
+
raise gr.Error("Wrong input, more than 500 characters.")
|
30 |
else:
|
31 |
return text
|
32 |
|