dariolopez commited on
Commit
d8b4406
·
1 Parent(s): 96deb8b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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,
@@ -56,7 +56,7 @@ https://huggingface.co/hackathon-somos-nlp-2023/roberta-base-bne-finetuned-suici
56
  * [diegogd](https://huggingface.co/diegogd)
57
 
58
  """,
59
- title="Detector de Suicidios",
60
  interpretation="default"
61
  )
62
  iface.launch()
 
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,
 
56
  * [diegogd](https://huggingface.co/diegogd)
57
 
58
  """,
59
+ title="Detector de comentarios con ideación suicida",
60
  interpretation="default"
61
  )
62
  iface.launch()