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 |
def analyze_output(input_text):
|
5 |
-
pipe = pipeline("text-classification", model="
|
6 |
result = pipe(input_text)[0]
|
7 |
if result["label"] == "LABEL_0":
|
8 |
return f"Not Spam: {result['score']:.4f}"
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
def analyze_output(input_text):
|
5 |
+
pipe = pipeline("text-classification", model="ZachBeesley/Spam-Detector")
|
6 |
result = pipe(input_text)[0]
|
7 |
if result["label"] == "LABEL_0":
|
8 |
return f"Not Spam: {result['score']:.4f}"
|