bgamazay commited on
Commit
ca20221
·
verified ·
1 Parent(s): b3f5a49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -57,7 +57,7 @@ def generate_html_table_from_df(df):
57
  html += '<tbody>'
58
  for _, row in df.iterrows():
59
  energy_numeric = row['gpu_energy_numeric']
60
- energy_str = f"{energy_numeric:.4f}"
61
  # Compute the relative width (as a percentage)
62
  bar_width = (energy_numeric / max_energy) * 100
63
  score_val = row['energy_score']
@@ -185,9 +185,11 @@ with demo:
185
  gr.HTML('''
186
  <div style="text-align: center; margin-bottom: 20px;">
187
  <a href="https://huggingface.co/spaces/AIEnergyScore/submission_portal" style="margin: 0 15px; text-decoration: none; font-weight: bold; font-size: 1.1em;">Submission Portal</a>
188
- <a href="https://huggingface.co/spaces/AIEnergyScore/README/discussions" style="margin: 0 15px; text-decoration: none; font-weight: bold; font-size: 1.1em;">Community</a>
189
  <a href="https://huggingface.github.io/AIEnergyScore/#faq" style="margin: 0 15px; text-decoration: none; font-weight: bold; font-size: 1.1em;">FAQ</a>
190
  <a href="https://huggingface.github.io/AIEnergyScore/#documentation" style="margin: 0 15px; text-decoration: none; font-weight: bold; font-size: 1.1em;">Documentation</a>
 
 
191
  </div>
192
  ''')
193
 
 
57
  html += '<tbody>'
58
  for _, row in df.iterrows():
59
  energy_numeric = row['gpu_energy_numeric']
60
+ energy_str = f"{energy_numeric:.2f}"
61
  # Compute the relative width (as a percentage)
62
  bar_width = (energy_numeric / max_energy) * 100
63
  score_val = row['energy_score']
 
185
  gr.HTML('''
186
  <div style="text-align: center; margin-bottom: 20px;">
187
  <a href="https://huggingface.co/spaces/AIEnergyScore/submission_portal" style="margin: 0 15px; text-decoration: none; font-weight: bold; font-size: 1.1em;">Submission Portal</a>
188
+ <a href="https://huggingface.co/spaces/AIEnergyScore/Label" style="margin: 0 15px; text-decoration: none; font-weight: bold; font-size: 1.1em;">Label Generator</a>
189
  <a href="https://huggingface.github.io/AIEnergyScore/#faq" style="margin: 0 15px; text-decoration: none; font-weight: bold; font-size: 1.1em;">FAQ</a>
190
  <a href="https://huggingface.github.io/AIEnergyScore/#documentation" style="margin: 0 15px; text-decoration: none; font-weight: bold; font-size: 1.1em;">Documentation</a>
191
+ <a href="https://huggingface.co/spaces/AIEnergyScore/README/discussions" style="margin: 0 15px; text-decoration: none; font-weight: bold; font-size: 1.1em;">Community</a>
192
+
193
  </div>
194
  ''')
195