Spaces:
Running
Running
Update ai_text_detector_valid_final.py
Browse files
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 {"
|
| 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 |
|