Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ from transformers import pipeline
|
|
| 3 |
|
| 4 |
# Load the AI detection model pipeline from Hugging Face
|
| 5 |
# We're using a well-regarded RoBERTa-based model for this task.
|
| 6 |
-
pipe = pipeline("text-classification", model="
|
| 7 |
|
| 8 |
def detect_ai_text(text):
|
| 9 |
"""
|
|
|
|
| 3 |
|
| 4 |
# Load the AI detection model pipeline from Hugging Face
|
| 5 |
# We're using a well-regarded RoBERTa-based model for this task.
|
| 6 |
+
pipe = pipeline("text-classification", model="openai-community/roberta-base-openai-detector")
|
| 7 |
|
| 8 |
def detect_ai_text(text):
|
| 9 |
"""
|