Spaces:
Runtime error
Runtime error
Align banner to center.
Browse files- app.py +8 -9
- src/display/css_html_js.py +1 -1
app.py
CHANGED
|
@@ -190,15 +190,14 @@ def get_theme():
|
|
| 190 |
blocks = gr.Blocks(css=custom_css, theme=get_theme())
|
| 191 |
with blocks:
|
| 192 |
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
)
|
| 202 |
|
| 203 |
gr.HTML(
|
| 204 |
"""
|
|
|
|
| 190 |
blocks = gr.Blocks(css=custom_css, theme=get_theme())
|
| 191 |
with blocks:
|
| 192 |
|
| 193 |
+
gr.Image(
|
| 194 |
+
"assets/banner.png",
|
| 195 |
+
interactive=False,
|
| 196 |
+
show_label=False,
|
| 197 |
+
show_download_button=False,
|
| 198 |
+
container=False,
|
| 199 |
+
elem_classes=["banner_image"],
|
| 200 |
+
)
|
|
|
|
| 201 |
|
| 202 |
gr.HTML(
|
| 203 |
"""
|
src/display/css_html_js.py
CHANGED
|
@@ -4,7 +4,7 @@ custom_css = """
|
|
| 4 |
font-size: 16px !important;
|
| 5 |
}
|
| 6 |
|
| 7 |
-
.banner_image { width: 70% !important; }
|
| 8 |
|
| 9 |
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@500;600&display=swap');
|
| 10 |
|
|
|
|
| 4 |
font-size: 16px !important;
|
| 5 |
}
|
| 6 |
|
| 7 |
+
.banner_image { width: 70% !important; align-self: center !important; }
|
| 8 |
|
| 9 |
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@500;600&display=swap');
|
| 10 |
|