Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -67,8 +67,14 @@ def generate_html_table_from_df(df):
|
|
67 |
static_width = max_length * 10 + 16
|
68 |
|
69 |
max_energy = df['gpu_energy_numeric'].max() if not df.empty else 1
|
70 |
-
color_map = {"1": "
|
71 |
-
html = '<table style="width:100%; border-collapse: collapse; font-family:
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
# Apply the static width to the Model column header.
|
73 |
html += f'<thead><tr style="background-color: #f2f2f2;">'
|
74 |
html += f'<th style="text-align: left; padding: 8px; width: {static_width}px;">Model</th>'
|
|
|
67 |
static_width = max_length * 10 + 16
|
68 |
|
69 |
max_energy = df['gpu_energy_numeric'].max() if not df.empty else 1
|
70 |
+
color_map = {"1": "black", "2": "black", "3": "black", "4": "black", "5": "black"}
|
71 |
+
html = '<table style="width:100%; border-collapse: collapse; font-family: Inter, sans-serif;">'
|
72 |
+
html += '<thead><tr style="background-color: #f2f2f2;">'
|
73 |
+
html += '<th style="text-align: left; padding: 8px;" title="Model name with link to Hugging Face">Model</th>'
|
74 |
+
html += '<th style="text-align: left; padding: 8px;" title="GPU energy consumed in Watt-hours for 1,000 queries">GPU Energy (Wh)</th>'
|
75 |
+
html += '<th style="text-align: left; padding: 8px;" title="5 is most efficient, 1 is least. Relative energy efficiency score relative to other models in task/class at the time of leaderboard launch">Score</th>'
|
76 |
+
html += '</tr></thead>'
|
77 |
+
|
78 |
# Apply the static width to the Model column header.
|
79 |
html += f'<thead><tr style="background-color: #f2f2f2;">'
|
80 |
html += f'<th style="text-align: left; padding: 8px; width: {static_width}px;">Model</th>'
|