Spaces:
Runtime error
Runtime error
Dario Lopez Padial
commited on
Commit
•
a3a02f1
1
Parent(s):
2aa9dad
Add application file flag
Browse files
app.py
CHANGED
@@ -11,5 +11,7 @@ def detect_suicide_comment(comentario="Quiero acabar con todo. No merece la pena
|
|
11 |
return pipe(comentario)
|
12 |
|
13 |
|
14 |
-
iface = gr.Interface(
|
|
|
|
|
15 |
iface.launch()
|
|
|
11 |
return pipe(comentario)
|
12 |
|
13 |
|
14 |
+
iface = gr.Interface(
|
15 |
+
fn=detect_suicide_comment, inputs="text", outputs="text", allow_flagging="manual", flagging_callback=hf_writer
|
16 |
+
)
|
17 |
iface.launch()
|