Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
125e370
1
Parent(s):
cd86816
u1
Browse files- typo_check.py +1 -1
typo_check.py
CHANGED
@@ -36,7 +36,7 @@ def correct_typo(text, model, tokenizer, device):
|
|
36 |
raise gr.Error("Please enter some text💥!", duration=5)
|
37 |
|
38 |
|
39 |
-
if len(text.strip()) >
|
40 |
#return "Shorter the better."
|
41 |
raise gr.Error("Shorter the better💥!", duration=5)
|
42 |
|
|
|
36 |
raise gr.Error("Please enter some text💥!", duration=5)
|
37 |
|
38 |
|
39 |
+
if len(text.strip()) > 1024:
|
40 |
#return "Shorter the better."
|
41 |
raise gr.Error("Shorter the better💥!", duration=5)
|
42 |
|