Spaces:
Sleeping
Sleeping
Fix comparison table Metric column as string
Browse files
app.py
CHANGED
|
@@ -175,7 +175,7 @@ def dataframe_to_styled_html(df: pd.DataFrame, title: str) -> str:
|
|
| 175 |
|
| 176 |
for col in df.columns:
|
| 177 |
val = row[col]
|
| 178 |
-
if col == "Model" or col == "Type":
|
| 179 |
cells += f"""
|
| 180 |
<td style="padding: 10px 16px; text-align: left; font-weight: 600;
|
| 181 |
color: #111827; border-bottom: 1px solid #e5e7eb;">
|
|
|
|
| 175 |
|
| 176 |
for col in df.columns:
|
| 177 |
val = row[col]
|
| 178 |
+
if col == "Model" or col == "Type" or col == "Metric":
|
| 179 |
cells += f"""
|
| 180 |
<td style="padding: 10px 16px; text-align: left; font-weight: 600;
|
| 181 |
color: #111827; border-bottom: 1px solid #e5e7eb;">
|