sdafd commited on
Commit
bb5b265
·
verified ·
1 Parent(s): 34aed82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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="Titeiiko/OTIS-Official-Spam-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}"