Spaces:
Runtime error
Runtime error
Commit
·
bdad7be
1
Parent(s):
0018365
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,
|
|
|
|
| 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,
|