Dario Lopez Padial commited on
Commit
a3a02f1
1 Parent(s): 2aa9dad

Add application file flag

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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(fn=detect_suicide_comment, inputs="text", outputs="text", flagging_callback=hf_writer)
 
 
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()