Update app.py
Browse files
app.py
CHANGED
|
@@ -161,20 +161,12 @@ def create_leaderboard():
|
|
| 161 |
'it': 'Italian'
|
| 162 |
}
|
| 163 |
|
| 164 |
-
# Load the PNG logo
|
| 165 |
-
logo_png = load_png_as_logo()
|
| 166 |
-
|
| 167 |
with gr.Blocks(title="Visual Embeddings Retrieval Leaderboard",
|
| 168 |
theme='argilla/argilla-theme') as demo:
|
| 169 |
|
| 170 |
-
# Header section with
|
| 171 |
-
gr.HTML(
|
| 172 |
<div style="padding: 2em 2em 1em 2em; text-align: center;">
|
| 173 |
-
<div style="margin-bottom: 1em;">
|
| 174 |
-
<a href="https://racine.ai" target="_blank" style="display: inline-block;">
|
| 175 |
-
{logo_png}
|
| 176 |
-
</a>
|
| 177 |
-
</div>
|
| 178 |
<div style="font-size: 1.5em; font-weight: 600; color: #001f3f; margin-bottom: 0.5em;">
|
| 179 |
Racine.ai
|
| 180 |
</div>
|
|
@@ -338,16 +330,11 @@ def create_leaderboard():
|
|
| 338 |
</div>
|
| 339 |
""")
|
| 340 |
|
| 341 |
-
# Footer section -
|
| 342 |
gr.Markdown("""
|
| 343 |
-
|
| 344 |
-
- Scores are updated regularly as new models are evaluated
|
| 345 |
-
- All evaluations use the same test set for fair comparison
|
| 346 |
-
- Models are evaluated on both English and French datasets to assess cross-lingual capabilities
|
| 347 |
-
- Color coding indicates model origin (Blue = EU, Red = Chinese)
|
| 348 |
|
| 349 |
-
|
| 350 |
-
```
|
| 351 |
```
|
| 352 |
```
|
| 353 |
```
|
|
@@ -358,19 +345,6 @@ def create_leaderboard():
|
|
| 358 |
}
|
| 359 |
```
|
| 360 |
""")
|
| 361 |
-
|
| 362 |
-
# Footer with links - properly styled
|
| 363 |
-
gr.HTML("""
|
| 364 |
-
<div style="text-align: center; padding: 2em 0; border-top: 1px solid #e0e0e0; margin-top: 2em;">
|
| 365 |
-
<p style="margin: 0.5em 0;">
|
| 366 |
-
<a href="https://github.com/racine-ai" target="_blank" style="margin: 0 1em; color: #001f3f; text-decoration: none;">Use via API 🚀</a>
|
| 367 |
-
<span style="color: #ccc;">•</span>
|
| 368 |
-
<a href="https://gradio.app" target="_blank" style="margin: 0 1em; color: #001f3f; text-decoration: none;">Built with Gradio 🎨</a>
|
| 369 |
-
<span style="color: #ccc;">•</span>
|
| 370 |
-
<a href="#" onclick="alert('Settings'); return false;" style="margin: 0 1em; color: #001f3f; text-decoration: none;">Settings ⚙️</a>
|
| 371 |
-
</p>
|
| 372 |
-
</div>
|
| 373 |
-
""")
|
| 374 |
|
| 375 |
return demo
|
| 376 |
|
|
|
|
| 161 |
'it': 'Italian'
|
| 162 |
}
|
| 163 |
|
|
|
|
|
|
|
|
|
|
| 164 |
with gr.Blocks(title="Visual Embeddings Retrieval Leaderboard",
|
| 165 |
theme='argilla/argilla-theme') as demo:
|
| 166 |
|
| 167 |
+
# Header section with Racine.ai and title
|
| 168 |
+
gr.HTML("""
|
| 169 |
<div style="padding: 2em 2em 1em 2em; text-align: center;">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 170 |
<div style="font-size: 1.5em; font-weight: 600; color: #001f3f; margin-bottom: 0.5em;">
|
| 171 |
Racine.ai
|
| 172 |
</div>
|
|
|
|
| 330 |
</div>
|
| 331 |
""")
|
| 332 |
|
| 333 |
+
# Footer section - Only citation
|
| 334 |
gr.Markdown("""
|
| 335 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
| 336 |
|
| 337 |
+
If you use these benchmarks in your research, please cite:
|
|
|
|
| 338 |
```
|
| 339 |
```
|
| 340 |
```
|
|
|
|
| 345 |
}
|
| 346 |
```
|
| 347 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 348 |
|
| 349 |
return demo
|
| 350 |
|