yaful commited on
Commit
9f38e83
1 Parent(s): 6da6fb5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -16,6 +16,7 @@ tokenizer = AutoTokenizer.from_pretrained(model_dir)
16
  model = AutoModelForSequenceClassification.from_pretrained(model_dir).to(device)
17
 
18
  def detect(input_text,th=-3.08583984375):
 
19
  if len(input_text.split()) < 80:
20
  return 'It is not reliable to detect text with less than 80 words.'
21
 
 
16
  model = AutoModelForSequenceClassification.from_pretrained(model_dir).to(device)
17
 
18
  def detect(input_text,th=-3.08583984375):
19
+ print(len(input_text.split()))
20
  if len(input_text.split()) < 80:
21
  return 'It is not reliable to detect text with less than 80 words.'
22