dariolopez commited on
Commit
cd9c9f3
1 Parent(s): fe1a643

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -9,7 +9,8 @@ pipe = pipeline("text-classification", model='hackathon-somos-nlp-2023/roberta-b
9
 
10
  def detect_suicide_comment(input):
11
  result = pipe(input)[0]
12
- return {result['label']: result['score']}
 
13
 
14
 
15
  iface = gr.Interface(
 
9
 
10
  def detect_suicide_comment(input):
11
  result = pipe(input)[0]
12
+ # return {result['label']: result['score']}
13
+ return result
14
 
15
 
16
  iface = gr.Interface(