dariolopez commited on
Commit
bdad7be
·
1 Parent(s): 0018365

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ def detect_suicide_comment(input):
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,
 
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,