p1atdev commited on
Commit
a355e79
·
verified ·
1 Parent(s): 0814202

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from transformers import pipeline
4
  pipe = pipeline("text-classification", model="p1atdev/saikyou-shield-30m")
5
 
6
  def classify(text):
7
- return labels = {
8
  item["label"]: item["score"]
9
  for item in pipe(text, top_k=2)
10
  }
 
4
  pipe = pipeline("text-classification", model="p1atdev/saikyou-shield-30m")
5
 
6
  def classify(text):
7
+ return {
8
  item["label"]: item["score"]
9
  for item in pipe(text, top_k=2)
10
  }