bgamazay commited on
Commit
5c63e2e
·
verified ·
1 Parent(s): a49a384

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -26
app.py CHANGED
@@ -142,38 +142,25 @@ def get_zip_data_link():
142
  )
143
 
144
  with gr.Blocks() as demo:
145
- # --- Header Links (at the very top) ---
146
- with gr.Row():
147
- leaderboard_link = gr.HTML(
148
- '<a href="https://huggingface.co/spaces/AIEnergyScore/Leaderboard" '
149
- 'style="margin: 0 10px; text-decoration: none; font-weight: bold; font-size: 1.1em; '
150
- 'color: black; font-family: \'Inter\', sans-serif;">Leaderboard</a>'
151
- )
152
- label_link = gr.HTML(
153
- '<a href="https://huggingface.co/spaces/AIEnergyScore/Label" '
154
- 'style="margin: 0 10px; text-decoration: none; font-weight: bold; font-size: 1.1em; '
155
- 'color: black; font-family: \'Inter\', sans-serif;">Label Generator</a>'
156
- )
157
- faq_link = gr.HTML(
158
- '<a href="https://huggingface.github.io/AIEnergyScore/#faq" '
159
- 'style="margin: 0 10px; text-decoration: none; font-weight: bold; font-size: 1.1em; '
160
- 'color: black; font-family: \'Inter\', sans-serif;">FAQ</a>'
161
- )
162
- documentation_link = gr.HTML(
163
- '<a href="https://huggingface.github.io/AIEnergyScore/#documentation" '
164
- 'style="margin: 0 10px; text-decoration: none; font-weight: bold; font-size: 1.1em; '
165
- 'color: black; font-family: \'Inter\', sans-serif;">Documentation</a>'
166
- )
167
-
168
  # --- Logo (centered) ---
169
  gr.HTML('''
170
  <div style="margin-top: 0px;">
171
  <img src="https://huggingface.co/spaces/AIEnergyScore/Leaderboard/resolve/main/logo.png"
172
  alt="Logo"
173
- style="display: block; margin: 0 auto; max-width: 500px; height: auto;">
174
- </div>
175
  ''')
176
-
177
  # --- Main UI ---
178
  gr.Markdown("# Submission Portal")
179
  gr.Markdown("### The goal of the AI Energy Score project is to develop an energy-based rating system for AI model deployment that will guide members of the community in choosing models for different tasks based on energy efficiency.")
 
142
  )
143
 
144
  with gr.Blocks() as demo:
145
+ with demo:
146
+ # --- Header Links (at the very top, evenly spaced) ---
147
+ gr.HTML(f'''
148
+ <div style="display: flex; justify-content: space-evenly; align-items: center; margin-bottom: 20px;">
149
+ <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>
150
+ <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>
151
+ <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>
152
+ <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>
153
+ {get_zip_data_link()}
154
+ <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>
155
+ ''')
156
+
 
 
 
 
 
 
 
 
 
 
 
157
  # --- Logo (centered) ---
158
  gr.HTML('''
159
  <div style="margin-top: 0px;">
160
  <img src="https://huggingface.co/spaces/AIEnergyScore/Leaderboard/resolve/main/logo.png"
161
  alt="Logo"
162
+ style="display: block; margin: 0 auto; max-width: 300px; height: auto;">
 
163
  ''')
 
164
  # --- Main UI ---
165
  gr.Markdown("# Submission Portal")
166
  gr.Markdown("### The goal of the AI Energy Score project is to develop an energy-based rating system for AI model deployment that will guide members of the community in choosing models for different tasks based on energy efficiency.")