Spaces:
Running
Running
Cristóbal Hernández
commited on
Commit
·
e5b39a3
1
Parent(s):
f3418c2
Add application file
Browse files
app.py
CHANGED
@@ -124,13 +124,7 @@ def classify_output(item):
|
|
124 |
|
125 |
|
126 |
|
127 |
-
article_text = ""
|
128 |
-
|
129 |
-
Just
|
130 |
-
|
131 |
-
text
|
132 |
-
|
133 |
-
"""
|
134 |
|
135 |
# Apply the function to your Markdown strings
|
136 |
|
@@ -140,7 +134,8 @@ hf_writer = gr.HuggingFaceDatasetSaver(api_key, 'flagging_EEMM_V05')
|
|
140 |
demo = gr.Interface(fn=classify_output, inputs=txtbx, outputs=txtbxopt,
|
141 |
theme = gr.themes.Soft(primary_hue='orange'),
|
142 |
title = 'EEMM Item Classification Machine V 0.5',
|
143 |
-
description =
|
|
|
144 |
article = article_text,
|
145 |
allow_flagging = 'manual',
|
146 |
flagging_options = ['Wrong category','Lacks a category'],
|
|
|
124 |
|
125 |
|
126 |
|
127 |
+
article_text = "### Have fun!"
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
|
129 |
# Apply the function to your Markdown strings
|
130 |
|
|
|
134 |
demo = gr.Interface(fn=classify_output, inputs=txtbx, outputs=txtbxopt,
|
135 |
theme = gr.themes.Soft(primary_hue='orange'),
|
136 |
title = 'EEMM Item Classification Machine V 0.5',
|
137 |
+
description = """This machine classifies items It classifies items in 7 EEMM dimensions following (ref).
|
138 |
+
**Please note that the machine goes idle after a period of inactivity. If this occurs, waking it up may take around 20 seconds. Be patient ;)**""",
|
139 |
article = article_text,
|
140 |
allow_flagging = 'manual',
|
141 |
flagging_options = ['Wrong category','Lacks a category'],
|