Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ def detect_text(text):
|
|
| 25 |
try:
|
| 26 |
logger.info(f"Processing text: {text[:50]}...")
|
| 27 |
score = detector.my_detector([text])[0] # Process single text
|
| 28 |
-
result = "Most likely AI-generated" if score > 0.2 else "Most likely human-generated"
|
| 29 |
logger.info(f"Result: {result}")
|
| 30 |
return result
|
| 31 |
except Exception as e:
|
|
|
|
| 25 |
try:
|
| 26 |
logger.info(f"Processing text: {text[:50]}...")
|
| 27 |
score = detector.my_detector([text])[0] # Process single text
|
| 28 |
+
result = f"Most likely AI-generated:{score}" if score > 0.2 else f"Most likely human-generated: {score}"
|
| 29 |
logger.info(f"Result: {result}")
|
| 30 |
return result
|
| 31 |
except Exception as e:
|