yagnik12 commited on
Commit
a82a2ae
·
verified ·
1 Parent(s): 44d54f5

Update ai_text_detector_valid_final.py

Browse files
Files changed (1) hide show
  1. ai_text_detector_valid_final.py +1 -1
ai_text_detector_valid_final.py CHANGED
@@ -60,7 +60,7 @@ def classify_szegedai(text: str):
60
  word_count = len(cleaned_text.split())
61
  if word_count < 30:
62
  # For very short texts, skip AI classification and assume mostly human
63
- return {"Human Probability": 95.0, "AI Probability": 5.0}
64
 
65
  inputs = tokenizer_modernbert(cleaned_text, return_tensors="pt", truncation=True, padding=True).to(device)
66
 
 
60
  word_count = len(cleaned_text.split())
61
  if word_count < 30:
62
  # For very short texts, skip AI classification and assume mostly human
63
+ return {"Please Enter at least 30 words"}
64
 
65
  inputs = tokenizer_modernbert(cleaned_text, return_tensors="pt", truncation=True, padding=True).to(device)
66