Spaces:
Runtime error
Runtime error
Dario Lopez Padial
commited on
Commit
·
cb110ca
1
Parent(s):
a3a02f1
Add application file flag
Browse files
app.py
CHANGED
@@ -7,8 +7,8 @@ pipe = pipeline("text-classification", model='hackathon-somos-nlp-2023/roberta-b
|
|
7 |
hf_writer = gr.HuggingFaceDatasetSaver(os.environ['HF_API_TOKEN'], "text-classification-mistakes")
|
8 |
|
9 |
|
10 |
-
def detect_suicide_comment(
|
11 |
-
return pipe(
|
12 |
|
13 |
|
14 |
iface = gr.Interface(
|
|
|
7 |
hf_writer = gr.HuggingFaceDatasetSaver(os.environ['HF_API_TOKEN'], "text-classification-mistakes")
|
8 |
|
9 |
|
10 |
+
def detect_suicide_comment(input):
|
11 |
+
return pipe(input)
|
12 |
|
13 |
|
14 |
iface = gr.Interface(
|