Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -142,9 +142,8 @@ def get_zip_data_link():
|
|
| 142 |
)
|
| 143 |
|
| 144 |
with gr.Blocks() as demo:
|
| 145 |
-
with demo:
|
| 146 |
# --- Header Links (at the very top, evenly spaced) ---
|
| 147 |
-
gr.HTML(
|
| 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>
|
|
@@ -152,15 +151,18 @@ with gr.Blocks() as demo:
|
|
| 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="
|
| 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.")
|
|
|
|
| 142 |
)
|
| 143 |
|
| 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>
|
|
|
|
| 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 |
{get_zip_data_link()}
|
| 153 |
<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>
|
| 154 |
+
</div>
|
| 155 |
+
""")
|
| 156 |
+
|
| 157 |
# --- Logo (centered) ---
|
| 158 |
+
gr.HTML("""
|
| 159 |
+
<div style="margin-top: 0px; text-align: center;">
|
| 160 |
<img src="https://huggingface.co/spaces/AIEnergyScore/Leaderboard/resolve/main/logo.png"
|
| 161 |
alt="Logo"
|
| 162 |
+
style="max-width: 300px; height: auto;">
|
| 163 |
+
</div>
|
| 164 |
+
""")
|
| 165 |
+
|
| 166 |
# --- Main UI ---
|
| 167 |
gr.Markdown("# Submission Portal")
|
| 168 |
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.")
|