Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Load a pre-trained text classification model
|
5 |
-
classifier = pipeline("text-classification", model="
|
6 |
|
7 |
def detect_phishing(email_text):
|
8 |
result = classifier(email_text)[0]
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Load a pre-trained text classification model
|
5 |
+
classifier = pipeline("text-classification", model="mrm8488/bert-tiny-finetuned-phishing")
|
6 |
|
7 |
def detect_phishing(email_text):
|
8 |
result = classifier(email_text)[0]
|