Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -142,38 +142,25 @@ def get_zip_data_link():
|
|
142 |
)
|
143 |
|
144 |
with gr.Blocks() as demo:
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
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:
|
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.")
|