Spaces:
Runtime error
Runtime error
Commit
·
45aac93
1
Parent(s):
6228774
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,6 +17,31 @@ iface = gr.Interface(
|
|
| 17 |
outputs="text",
|
| 18 |
allow_flagging="manual",
|
| 19 |
flagging_options=['Incorrect classification'],
|
| 20 |
-
flagging_callback=hf_writer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
)
|
| 22 |
iface.launch()
|
|
|
|
| 17 |
outputs="text",
|
| 18 |
allow_flagging="manual",
|
| 19 |
flagging_options=['Incorrect classification'],
|
| 20 |
+
flagging_callback=hf_writer,
|
| 21 |
+
examples=[
|
| 22 |
+
"Quiero acabar con todo. No merece la pena vivir.",
|
| 23 |
+
"El partido de fútbol fue igualado, disfrutamos mucho jugando juntos."
|
| 24 |
+
],
|
| 25 |
+
article="""
|
| 26 |
+
## Motivación
|
| 27 |
+
|
| 28 |
+
Introduce cualquier frase en español, un modelo de inteligencia artificial tratará de predecir si la frase contiene algún patrón indicativo de ideación o compotamiento suicida.
|
| 29 |
+
|
| 30 |
+
## Dataset
|
| 31 |
+
|
| 32 |
+
https://huggingface.co/datasets/hackathon-somos-nlp-2023/suicide-comments-es
|
| 33 |
+
|
| 34 |
+
## Model
|
| 35 |
+
|
| 36 |
+
https://huggingface.co/hackathon-somos-nlp-2023/roberta-base-bne-finetuned-suicide-es
|
| 37 |
+
|
| 38 |
+
## Team
|
| 39 |
+
|
| 40 |
+
* [dariolopez](https://huggingface.co/dariolopez)
|
| 41 |
+
* [diegogd](https://huggingface.co/diegogd)
|
| 42 |
+
|
| 43 |
+
""",
|
| 44 |
+
|
| 45 |
+
|
| 46 |
)
|
| 47 |
iface.launch()
|