Commit
·
3d4c9af
1
Parent(s):
11793f2
Modified image size
Browse files
app.py
CHANGED
@@ -121,8 +121,34 @@ with gr.Blocks() as demo:
|
|
121 |
get_leaderboard_object(df_results=df)
|
122 |
# TODO: this is not going to update well, need to fix
|
123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
with gr.TabItem("❔About", elem_id="abdev-benchmark-tab-table"):
|
125 |
-
gr.Image(
|
|
|
|
|
|
|
|
|
|
|
126 |
gr.Markdown(
|
127 |
"""
|
128 |
## About this challenge
|
|
|
121 |
get_leaderboard_object(df_results=df)
|
122 |
# TODO: this is not going to update well, need to fix
|
123 |
|
124 |
+
gr.Markdown(
|
125 |
+
"""
|
126 |
+
<style>
|
127 |
+
.resized-image img {
|
128 |
+
width: 80%;
|
129 |
+
height: auto;
|
130 |
+
display: block;
|
131 |
+
margin-left: auto;
|
132 |
+
margin-right: auto;
|
133 |
+
}
|
134 |
+
|
135 |
+
@media (max-width: 768px) {
|
136 |
+
.resized-image img {
|
137 |
+
width: 100%;
|
138 |
+
}
|
139 |
+
}
|
140 |
+
</style>
|
141 |
+
""",
|
142 |
+
elem_id="style-inject"
|
143 |
+
)
|
144 |
+
|
145 |
with gr.TabItem("❔About", elem_id="abdev-benchmark-tab-table"):
|
146 |
+
gr.Image(
|
147 |
+
value="./assets/competition_logo.jpg",
|
148 |
+
show_label=False,
|
149 |
+
elem_classes=["resized-image"],
|
150 |
+
show_download_button=False,
|
151 |
+
)
|
152 |
gr.Markdown(
|
153 |
"""
|
154 |
## About this challenge
|