Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -99,7 +99,7 @@ def greet(text):
|
|
99 |
# print('类别为:{}'.format(classes[predic[0]]))
|
100 |
return classes[predic[0]]
|
101 |
|
102 |
-
css = "
|
103 |
body {
|
104 |
background-color: #f6f6f6;
|
105 |
font-family: Arial, sans-serif;
|
@@ -169,12 +169,14 @@ body {
|
|
169 |
font-family: 'Font Awesome 5 Free';
|
170 |
font-weight: 900;
|
171 |
}
|
172 |
-
|
173 |
.gradio-interface-header-icon.fa-icon:before {
|
174 |
content: '\f007';
|
175 |
}
|
176 |
-
"
|
177 |
-
demo = gr.Interface(fn=greet, inputs="text", outputs="text", title="text-classification app", css=
|
|
|
|
|
|
|
178 |
thumbnail="https://i.imgur.com/5rkKx5A.png",
|
179 |
layout="vertical", description="This is a demo for text classification.")
|
180 |
demo.launch()
|
|
|
99 |
# print('类别为:{}'.format(classes[predic[0]]))
|
100 |
return classes[predic[0]]
|
101 |
|
102 |
+
css = """
|
103 |
body {
|
104 |
background-color: #f6f6f6;
|
105 |
font-family: Arial, sans-serif;
|
|
|
169 |
font-family: 'Font Awesome 5 Free';
|
170 |
font-weight: 900;
|
171 |
}
|
|
|
172 |
.gradio-interface-header-icon.fa-icon:before {
|
173 |
content: '\f007';
|
174 |
}
|
175 |
+
"""
|
176 |
+
demo = gr.Interface(fn=greet, inputs="text", outputs="text", title="text-classification app", css="body {
|
177 |
+
background-color: #f6f6f6;
|
178 |
+
font-family: Arial, sans-serif;
|
179 |
+
}",
|
180 |
thumbnail="https://i.imgur.com/5rkKx5A.png",
|
181 |
layout="vertical", description="This is a demo for text classification.")
|
182 |
demo.launch()
|