Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -140,12 +140,15 @@ def plot_task_specific_top_models():
|
|
| 140 |
return pil_image, temp_image_file.name
|
| 141 |
|
| 142 |
def plot_heatmap():
|
|
|
|
|
|
|
|
|
|
| 143 |
plt.figure(figsize=(14, 10))
|
| 144 |
sns.heatmap(
|
| 145 |
df_full.iloc[:, 2:],
|
| 146 |
annot=True,
|
| 147 |
cmap="YlGnBu",
|
| 148 |
-
xticklabels=columns[2:],
|
| 149 |
yticklabels=df_full["Model Configuration"]
|
| 150 |
)
|
| 151 |
plt.title("Performance Heatmap", fontsize=16)
|
|
@@ -161,6 +164,7 @@ def plot_heatmap():
|
|
| 161 |
pil_image.save(temp_image_file.name)
|
| 162 |
return pil_image, temp_image_file.name
|
| 163 |
|
|
|
|
| 164 |
def scrape_mergekit_config(model_name):
|
| 165 |
"""
|
| 166 |
For the *tiny* table’s model links.
|
|
|
|
| 140 |
return pil_image, temp_image_file.name
|
| 141 |
|
| 142 |
def plot_heatmap():
|
| 143 |
+
# Add a column for the total scores across all tasks
|
| 144 |
+
df_full["Total Scores"] = df_full.iloc[:, 2:].sum(axis=1)
|
| 145 |
+
|
| 146 |
plt.figure(figsize=(14, 10))
|
| 147 |
sns.heatmap(
|
| 148 |
df_full.iloc[:, 2:],
|
| 149 |
annot=True,
|
| 150 |
cmap="YlGnBu",
|
| 151 |
+
xticklabels=list(columns[2:]) + ["Total Scores"],
|
| 152 |
yticklabels=df_full["Model Configuration"]
|
| 153 |
)
|
| 154 |
plt.title("Performance Heatmap", fontsize=16)
|
|
|
|
| 164 |
pil_image.save(temp_image_file.name)
|
| 165 |
return pil_image, temp_image_file.name
|
| 166 |
|
| 167 |
+
|
| 168 |
def scrape_mergekit_config(model_name):
|
| 169 |
"""
|
| 170 |
For the *tiny* table’s model links.
|