Spaces:
Running
Running
benediktstroebl
commited on
Commit
·
67cc4b1
1
Parent(s):
fee7997
added navbar
Browse files
app.py
CHANGED
@@ -291,9 +291,24 @@ def update_visualizations(benchmark_name, pricing_config):
|
|
291 |
return leaderboard_df, scatter_fig
|
292 |
|
293 |
with gr.Blocks(theme=my_theme, css='css.css', title="HAL: Holistic Agent Leaderboard") as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
294 |
# First add the header HTML
|
295 |
gr.HTML("""
|
296 |
-
|
297 |
.hal-header {
|
298 |
color: #ecf0f1;
|
299 |
border-radius: 10px;
|
|
|
291 |
return leaderboard_df, scatter_fig
|
292 |
|
293 |
with gr.Blocks(theme=my_theme, css='css.css', title="HAL: Holistic Agent Leaderboard") as demo:
|
294 |
+
# Add navigation bar
|
295 |
+
gr.HTML("""
|
296 |
+
<nav class="nav-bar">
|
297 |
+
<div class="nav-brand">
|
298 |
+
</div>
|
299 |
+
<div class="nav-links">
|
300 |
+
<a href="#leaderboards">Leaderboards</a>
|
301 |
+
<a href="https://github.com/benediktstroebl/hal-harness/tree/main/agents" target="_blank">Add Agent</a>
|
302 |
+
<a href="https://github.com/benediktstroebl/hal-harness/tree/main/hal/benchmarks" target="_blank">Add Benchmark</a>
|
303 |
+
<a href="https://github.com/benediktstroebl/hal-harness/tree/main" target="_blank">GitHub</a>
|
304 |
+
<a href="https://github.com/benediktstroebl/hal-harness#about-hal" target="_blank">About</a>
|
305 |
+
</div>
|
306 |
+
</nav>
|
307 |
+
""")
|
308 |
+
|
309 |
# First add the header HTML
|
310 |
gr.HTML("""
|
311 |
+
<style>
|
312 |
.hal-header {
|
313 |
color: #ecf0f1;
|
314 |
border-radius: 10px;
|
css.css
CHANGED
@@ -50,3 +50,48 @@ display: none;
|
|
50 |
.ml-1 { margin-left: 1rem; }
|
51 |
.mr-1 { margin-right: 1rem; }
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
.ml-1 { margin-left: 1rem; }
|
51 |
.mr-1 { margin-right: 1rem; }
|
52 |
|
53 |
+
/* Navigation Bar */
|
54 |
+
.nav-bar {
|
55 |
+
background-color: var(--background-color);
|
56 |
+
padding: 1rem;
|
57 |
+
display: flex;
|
58 |
+
justify-content: space-between;
|
59 |
+
align-items: center;
|
60 |
+
margin-bottom: 2rem;
|
61 |
+
}
|
62 |
+
|
63 |
+
.nav-links {
|
64 |
+
display: flex;
|
65 |
+
gap: 2rem;
|
66 |
+
align-items: center;
|
67 |
+
}
|
68 |
+
|
69 |
+
.nav-links a {
|
70 |
+
color: var(--text-color);
|
71 |
+
text-decoration: none;
|
72 |
+
font-weight: 500;
|
73 |
+
transition: color 0.3s ease;
|
74 |
+
}
|
75 |
+
|
76 |
+
.nav-links a:hover {
|
77 |
+
color: var(--primary-color);
|
78 |
+
}
|
79 |
+
|
80 |
+
.nav-brand {
|
81 |
+
display: flex;
|
82 |
+
align-items: center;
|
83 |
+
gap: 1rem;
|
84 |
+
}
|
85 |
+
|
86 |
+
.nav-brand img {
|
87 |
+
height: 40px;
|
88 |
+
width: auto;
|
89 |
+
}
|
90 |
+
|
91 |
+
.nav-brand a {
|
92 |
+
color: white;
|
93 |
+
text-decoration: none;
|
94 |
+
font-size: 1.5rem;
|
95 |
+
font-weight: bold;
|
96 |
+
}
|
97 |
+
|