Spaces:
Runtime error
Runtime error
Commit
·
d8b4406
1
Parent(s):
96deb8b
Update app.py
Browse files
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=
|
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
|
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()
|