sundea commited on
Commit
4877501
·
1 Parent(s): 5ae08be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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;
@@ -173,7 +173,7 @@ body {
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=css,
178
  thumbnail="https://i.imgur.com/5rkKx5A.png",
179
  layout="vertical", description="This is a demo for text classification.")
 
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;
 
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=css,
178
  thumbnail="https://i.imgur.com/5rkKx5A.png",
179
  layout="vertical", description="This is a demo for text classification.")