Spaces:
Sleeping
Sleeping
Commit
·
ffe55c8
1
Parent(s):
63a3164
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import gradio as gr
|
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
# Load the spam classifier model
|
| 5 |
-
classifier = pipeline("text-classification", model="
|
| 6 |
|
| 7 |
def spam_detector(text):
|
| 8 |
result = classifier(text)
|
|
|
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
# Load the spam classifier model
|
| 5 |
+
classifier = pipeline("text-classification", model="dima806/email-spam-detection-roberta")
|
| 6 |
|
| 7 |
def spam_detector(text):
|
| 8 |
result = classifier(text)
|