bgamazay commited on
Commit
08c9aec
·
verified ·
1 Parent(s): be5dffd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -119,7 +119,7 @@ def generate_info_callout(ratio, scope_text):
119
  f'<div style="text-align: right;">'
120
  f' <div style="display: inline-block; background-color: #e6ffe6; padding: 8px; '
121
  f' border-radius: 5px; font-size: 0.8em;">'
122
- f' 💡 did you know: <strong>{ratio:,.1f}x</strong> energy use difference between most and least efficient model in {scope_text}.'
123
  f' </div>'
124
  f'</div>'
125
  )
@@ -297,20 +297,20 @@ with demo:
297
 
298
  # --- Logo & Global Callout Row ---
299
  with gr.Row():
300
- with gr.Column(scale=6):
301
  gr.HTML('''
302
- <div style="text-align: left; margin-top: 0px;">
303
  <img src="https://huggingface.co/spaces/AIEnergyScore/Leaderboard/resolve/main/logo.png"
304
  alt="Logo"
305
  style="display: inline-block; max-width: 300px; height: auto;">
306
  </div>
307
  ''')
308
- with gr.Column(scale=6):
309
  global_callout = gr.HTML(get_global_callout())
310
 
311
  # --- Tabs for the different tasks ---
312
  with gr.Tabs():
313
- # --- Text Generation Tab (two dropdowns side by side with task callout to the right) ---
314
  with gr.TabItem("Text Generation 💬"):
315
  with gr.Row():
316
  with gr.Column(scale=4):
 
119
  f'<div style="text-align: right;">'
120
  f' <div style="display: inline-block; background-color: #e6ffe6; padding: 8px; '
121
  f' border-radius: 5px; font-size: 0.8em;">'
122
+ f' 💡 Did you know? There\'s a <strong>{ratio:,.1f}x</strong> energy use difference between the most and least efficient models in {scope_text}.'
123
  f' </div>'
124
  f'</div>'
125
  )
 
297
 
298
  # --- Logo & Global Callout Row ---
299
  with gr.Row():
300
+ with gr.Column(scale=8):
301
  gr.HTML('''
302
+ <div style="text-align: center; margin-top: 0px;">
303
  <img src="https://huggingface.co/spaces/AIEnergyScore/Leaderboard/resolve/main/logo.png"
304
  alt="Logo"
305
  style="display: inline-block; max-width: 300px; height: auto;">
306
  </div>
307
  ''')
308
+ with gr.Column(scale=4):
309
  global_callout = gr.HTML(get_global_callout())
310
 
311
  # --- Tabs for the different tasks ---
312
  with gr.Tabs():
313
+ # --- Text Generation Tab (dropdowns side by side with task callout to the right) ---
314
  with gr.TabItem("Text Generation 💬"):
315
  with gr.Row():
316
  with gr.Column(scale=4):