Update app.py
Browse files
app.py
CHANGED
@@ -256,6 +256,28 @@ block_css = """
|
|
256 |
#leaderboard_dataframe td {
|
257 |
line-height: 0.1em;
|
258 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
259 |
"""
|
260 |
|
261 |
def build_demo(elo_results_file, leaderboard_table_file):
|
@@ -269,6 +291,7 @@ def build_demo(elo_results_file, leaderboard_table_file):
|
|
269 |
leader_components = build_leaderboard_tab(
|
270 |
elo_results_file, leaderboard_table_file
|
271 |
)
|
|
|
272 |
|
273 |
return demo
|
274 |
|
|
|
256 |
#leaderboard_dataframe td {
|
257 |
line-height: 0.1em;
|
258 |
}
|
259 |
+
.image-container {
|
260 |
+
display: flex;
|
261 |
+
align-items: center;
|
262 |
+
padding: 1px;
|
263 |
+
}
|
264 |
+
.image-container img {
|
265 |
+
margin: 0 30px;
|
266 |
+
height: 20px;
|
267 |
+
max-height: 100%;
|
268 |
+
width: auto;
|
269 |
+
max-width: 20%;
|
270 |
+
}
|
271 |
+
"""
|
272 |
+
|
273 |
+
acknowledgment_md = """
|
274 |
+
<div class="image-container">
|
275 |
+
<p> <strong>Acknowledgment: </strong> We thank <a href="https://www.kaggle.com/" target="_blank">Kaggle</a>, <a href="https://mbzuai.ac.ae/" target="_blank">MBZUAI</a>, <a href="https://www.anyscale.com/" target="_blank">AnyScale</a>, and <a href="https://huggingface.co/" target="_blank">HuggingFace</a> for their sponsorship. </p>
|
276 |
+
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/Kaggle_logo.png/400px-Kaggle_logo.png" alt="Image 1">
|
277 |
+
<img src="https://mma.prnewswire.com/media/1227419/MBZUAI_Logo.jpg?p=facebookg" alt="Image 2">
|
278 |
+
<img src="https://docs.anyscale.com/site-assets/logo.png" alt="Image 3">
|
279 |
+
<img src="https://huggingface.co/datasets/huggingface/brand-assets/resolve/main/hf-logo-with-title.png" alt="Image 4">
|
280 |
+
</div>
|
281 |
"""
|
282 |
|
283 |
def build_demo(elo_results_file, leaderboard_table_file):
|
|
|
291 |
leader_components = build_leaderboard_tab(
|
292 |
elo_results_file, leaderboard_table_file
|
293 |
)
|
294 |
+
gr.Markdown(acknowledgment_md)
|
295 |
|
296 |
return demo
|
297 |
|