ThirdFourthFifth commited on
Commit
28ca239
·
verified ·
1 Parent(s): 669f5b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ pipeline = pipeline(task="text-classification", model="TostAI/nsfw-text-detectio
6
 
7
  def predict(input_txt):
8
  predictions = pipeline(input_txt)
9
- return input_txt, {p["label"]: p["score"] for p in predictions}
10
 
11
  gradio_app = gr.Interface(
12
  predict,
 
6
 
7
  def predict(input_txt):
8
  predictions = pipeline(input_txt)
9
+ return {p["label"]: p["score"] for p in predictions}
10
 
11
  gradio_app = gr.Interface(
12
  predict,