Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -144,23 +144,34 @@ def get_zip_data_link():
|
|
144 |
with gr.Blocks() as demo:
|
145 |
# --- Header Links (at the very top, evenly spaced) ---
|
146 |
gr.HTML("""
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
""")
|
155 |
-
|
156 |
# --- Logo (centered) ---
|
157 |
gr.HTML("""
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
|
|
|
|
|
|
163 |
""")
|
|
|
164 |
gr.Markdown('<div style="text-align: center;"><h2>Submission Portal</h2></div>')
|
165 |
gr.Markdown('<div style="text-align: center;">If you want us to evaluate a model hosted on the 🤗 Hub, enter the model ID and choose the corresponding task from the dropdown list below, then click <strong>Run Analysis</strong> to launch the benchmarking process.</div>')
|
166 |
gr.Markdown('<div style="text-align: center;">If you\'ve used the <a href="https://github.com/huggingface/AIEnergyScore/">Docker file</a> to run your own evaluation, please submit the resulting log files at the bottom of the page.</div>')
|
|
|
144 |
with gr.Blocks() as demo:
|
145 |
# --- Header Links (at the very top, evenly spaced) ---
|
146 |
gr.HTML("""
|
147 |
+
<style>
|
148 |
+
@media (prefers-color-scheme: dark) {
|
149 |
+
.header-link {
|
150 |
+
color: white !important;
|
151 |
+
}
|
152 |
+
}
|
153 |
+
</style>
|
154 |
+
<div style="display: flex; justify-content: space-evenly; align-items: center; margin-bottom: 20px;">
|
155 |
+
<a class="header-link" href="https://huggingface.co/spaces/AIEnergyScore/leaderboard" style="text-decoration: none; font-weight: bold; font-size: 1.1em; font-family: 'Inter', sans-serif;">Leaderboard</a>
|
156 |
+
<a class="header-link" href="https://huggingface.co/spaces/AIEnergyScore/Label" style="text-decoration: none; font-weight: bold; font-size: 1.1em; font-family: 'Inter', sans-serif;">Label Generator</a>
|
157 |
+
<a class="header-link" href="https://huggingface.github.io/AIEnergyScore/#faq" style="text-decoration: none; font-weight: bold; font-size: 1.1em; font-family: 'Inter', sans-serif;">FAQ</a>
|
158 |
+
<a class="header-link" href="https://huggingface.github.io/AIEnergyScore/#documentation" style="text-decoration: none; font-weight: bold; font-size: 1.1em; font-family: 'Inter', sans-serif;">Documentation</a>
|
159 |
+
<a class="header-link" href="https://huggingface.co/spaces/AIEnergyScore/README/discussions" style="text-decoration: none; font-weight: bold; font-size: 1.1em; font-family: 'Inter', sans-serif;">Community</a>
|
160 |
+
</div>
|
161 |
""")
|
162 |
+
|
163 |
# --- Logo (centered) ---
|
164 |
gr.HTML("""
|
165 |
+
<div style="margin-top: 0px;">
|
166 |
+
<picture style="display: block; margin: 0 auto; max-width: 300px;">
|
167 |
+
<source media="(prefers-color-scheme: dark)" srcset="https://huggingface.co/spaces/AIEnergyScore/Leaderboard/resolve/main/logodark.png">
|
168 |
+
<img src="https://huggingface.co/spaces/AIEnergyScore/Leaderboard/resolve/main/logo.png"
|
169 |
+
alt="Logo"
|
170 |
+
style="display: block; margin: 0 auto; max-width: 300px; height: auto;">
|
171 |
+
</picture>
|
172 |
+
</div>
|
173 |
""")
|
174 |
+
|
175 |
gr.Markdown('<div style="text-align: center;"><h2>Submission Portal</h2></div>')
|
176 |
gr.Markdown('<div style="text-align: center;">If you want us to evaluate a model hosted on the 🤗 Hub, enter the model ID and choose the corresponding task from the dropdown list below, then click <strong>Run Analysis</strong> to launch the benchmarking process.</div>')
|
177 |
gr.Markdown('<div style="text-align: center;">If you\'ve used the <a href="https://github.com/huggingface/AIEnergyScore/">Docker file</a> to run your own evaluation, please submit the resulting log files at the bottom of the page.</div>')
|