dariolopez commited on
Commit
6f14dd7
·
1 Parent(s): 4ea4621

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,13 +8,13 @@ pipe = pipeline("text-classification", model='hackathon-somos-nlp-2023/roberta-b
8
 
9
 
10
  def detect_suicide_comment(input):
11
- return pipe(input)[0]
12
 
13
 
14
  iface = gr.Interface(
15
  fn=detect_suicide_comment,
16
  inputs="text",
17
- outputs=gr.Label(num_top_classes=1),
18
  allow_flagging="manual",
19
  flagging_options=['Correct Classification', 'Incorrect Classification'],
20
  flagging_callback=hf_writer,
 
8
 
9
 
10
  def detect_suicide_comment(input):
11
+ return pipe(input)
12
 
13
 
14
  iface = gr.Interface(
15
  fn=detect_suicide_comment,
16
  inputs="text",
17
+ outputs="text",
18
  allow_flagging="manual",
19
  flagging_options=['Correct Classification', 'Incorrect Classification'],
20
  flagging_callback=hf_writer,