yaful commited on
Commit
e9ea56c
1 Parent(s): b67d1d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,8 +16,8 @@ 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()) < 50:
20
- return 'It is not reliable to detect text with less than 50 words.'
21
 
22
  label2decisions = {
23
  0: "machine-generated",
 
16
  model = AutoModelForSequenceClassification.from_pretrained(model_dir).to(device)
17
 
18
  def detect(input_text,th=-3.08583984375):
19
+ if len(input_text.split()) < 30:
20
+ return 'It is not reliable to detect text with less than 30 words.'
21
 
22
  label2decisions = {
23
  0: "machine-generated",