Spaces:
Running
Running
Cristóbal Hernández
commited on
Commit
·
2d3d424
1
Parent(s):
caeebc0
Add application file
Browse files
app.py
CHANGED
@@ -129,15 +129,7 @@ def remove_non_ascii(text):
|
|
129 |
|
130 |
|
131 |
|
132 |
-
article_text = """
|
133 |
-
|
134 |
-
**Placeholder text:**
|
135 |
-
Text text.
|
136 |
-
|
137 |
-
**place**
|
138 |
-
Text.
|
139 |
-
|
140 |
-
"""
|
141 |
|
142 |
# Apply the function to your Markdown strings
|
143 |
|
@@ -147,7 +139,7 @@ hf_writer = gr.HuggingFaceDatasetSaver(api_key, 'flagging_EEMM_V05')
|
|
147 |
demo = gr.Interface(fn=classify_output, inputs=txtbx, outputs=txtbxopt,
|
148 |
theme = gr.themes.Soft(primary_hue='orange'),
|
149 |
title = 'EEMM Item Classification Machine V 0.5',
|
150 |
-
description = 'This machine is a fine tuned version of DistillBERT. It classifies items in 7 EEMM dimensions following (ref). **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 ;)**',
|
151 |
article = article_text,
|
152 |
allow_flagging = 'manual',
|
153 |
flagging_options = ['Wrong category','Lacks a category'],
|
|
|
129 |
|
130 |
|
131 |
|
132 |
+
article_text = """**Placeholder***"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
|
134 |
# Apply the function to your Markdown strings
|
135 |
|
|
|
139 |
demo = gr.Interface(fn=classify_output, inputs=txtbx, outputs=txtbxopt,
|
140 |
theme = gr.themes.Soft(primary_hue='orange'),
|
141 |
title = 'EEMM Item Classification Machine V 0.5',
|
142 |
+
description = '## This machine is a fine tuned version of DistillBERT. It classifies items in 7 EEMM dimensions following (ref). \n **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 ;)**',
|
143 |
article = article_text,
|
144 |
allow_flagging = 'manual',
|
145 |
flagging_options = ['Wrong category','Lacks a category'],
|