alakxender commited on
Commit
125e370
·
1 Parent(s): cd86816
Files changed (1) hide show
  1. 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()) > 200:
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