Spaces:
Runtime error
Runtime error
Commit
·
6f14dd7
1
Parent(s):
4ea4621
Update app.py
Browse files
app.py
CHANGED
@@ -8,13 +8,13 @@ pipe = pipeline("text-classification", model='hackathon-somos-nlp-2023/roberta-b
|
|
8 |
|
9 |
|
10 |
def detect_suicide_comment(input):
|
11 |
-
return pipe(input)
|
12 |
|
13 |
|
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,
|
|
|
8 |
|
9 |
|
10 |
def detect_suicide_comment(input):
|
11 |
+
return pipe(input)
|
12 |
|
13 |
|
14 |
iface = gr.Interface(
|
15 |
fn=detect_suicide_comment,
|
16 |
inputs="text",
|
17 |
+
outputs="text",
|
18 |
allow_flagging="manual",
|
19 |
flagging_options=['Correct Classification', 'Incorrect Classification'],
|
20 |
flagging_callback=hf_writer,
|