Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -102,16 +102,11 @@ def greet(text):
|
|
| 102 |
css = """
|
| 103 |
body {
|
| 104 |
background-color: #f6f6f6;
|
| 105 |
-
font-family:Arial, sans-serif;
|
| 106 |
}
|
| 107 |
|
| 108 |
.gradio-interface {
|
| 109 |
-
padding
|
| 110 |
-
}
|
| 111 |
-
|
| 112 |
-
.gradio-interface-header-logo {
|
| 113 |
-
display: flex;
|
| 114 |
-
align-items: center;
|
| 115 |
}
|
| 116 |
|
| 117 |
.gradio-interface-header-logo img {
|
|
@@ -165,11 +160,6 @@ body {
|
|
| 165 |
margin-right: 1rem;
|
| 166 |
}
|
| 167 |
|
| 168 |
-
.gradio-interface-footer-icon {
|
| 169 |
-
font-size: 2rem;
|
| 170 |
-
margin-left: 1rem;
|
| 171 |
-
}
|
| 172 |
-
|
| 173 |
.gradio-interface-header-icon.emoji-icon {
|
| 174 |
display: none;
|
| 175 |
}
|
|
@@ -184,8 +174,9 @@ body {
|
|
| 184 |
content: '\f007';
|
| 185 |
}
|
| 186 |
"""
|
| 187 |
-
demo = gr.Interface(fn=greet, inputs="text", outputs="text", title="text-classification app",
|
| 188 |
-
|
|
|
|
| 189 |
demo.launch()
|
| 190 |
|
| 191 |
|
|
|
|
| 102 |
css = """
|
| 103 |
body {
|
| 104 |
background-color: #f6f6f6;
|
| 105 |
+
font-family: Arial, sans-serif;
|
| 106 |
}
|
| 107 |
|
| 108 |
.gradio-interface {
|
| 109 |
+
padding: 2rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 110 |
}
|
| 111 |
|
| 112 |
.gradio-interface-header-logo img {
|
|
|
|
| 160 |
margin-right: 1rem;
|
| 161 |
}
|
| 162 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 163 |
.gradio-interface-header-icon.emoji-icon {
|
| 164 |
display: none;
|
| 165 |
}
|
|
|
|
| 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.")
|
| 180 |
demo.launch()
|
| 181 |
|
| 182 |
|