bgamazay commited on
Commit
f04df6f
·
verified ·
1 Parent(s): c80ca5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -13
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
- <div style="display: flex; justify-content: space-evenly; align-items: center; margin-bottom: 20px;">
148
- <a href="https://huggingface.co/spaces/AIEnergyScore/leaderboard" style="text-decoration: none; font-weight: bold; font-size: 1.1em; color: black; font-family: 'Inter', sans-serif;">Leaderboard</a>
149
- <a href="https://huggingface.co/spaces/AIEnergyScore/Label" style="text-decoration: none; font-weight: bold; font-size: 1.1em; color: black; font-family: 'Inter', sans-serif;">Label Generator</a>
150
- <a href="https://huggingface.github.io/AIEnergyScore/#faq" style="text-decoration: none; font-weight: bold; font-size: 1.1em; color: black; font-family: 'Inter', sans-serif;">FAQ</a>
151
- <a href="https://huggingface.github.io/AIEnergyScore/#documentation" style="text-decoration: none; font-weight: bold; font-size: 1.1em; color: black; font-family: 'Inter', sans-serif;">Documentation</a>
152
- <a href="https://huggingface.co/spaces/AIEnergyScore/README/discussions" style="text-decoration: none; font-weight: bold; font-size: 1.1em; color: black; font-family: 'Inter', sans-serif;">Community</a>
153
- </div>
 
 
 
 
 
 
 
154
  """)
155
-
156
  # --- Logo (centered) ---
157
  gr.HTML("""
158
- <div style="margin-top: 0px;">
159
- <img src="https://huggingface.co/spaces/AIEnergyScore/Leaderboard/resolve/main/logo.png"
160
- alt="Logo"
161
- style="display: block; margin: 0 auto; max-width: 300px; height: auto;">
162
- </div>
 
 
 
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>')