Spaces:
Running
Running
scienta-hermes[bot] commited on
Commit ·
b316bb4
1
Parent(s): 67a6c9d
Skip tooltips for missing scores
Browse files
render.py
CHANGED
|
@@ -332,7 +332,9 @@ def _df_to_table(df: pd.DataFrame, bold_axis: int | None, empty: str) -> str:
|
|
| 332 |
text = _fmt_value(row[col], is_score)
|
| 333 |
cls = _cell_class(col, is_score, text is None)
|
| 334 |
weight = ' style="font-weight:700"' if (idx, col) in bold else ""
|
| 335 |
-
guide =
|
|
|
|
|
|
|
| 336 |
shown = (
|
| 337 |
_model_cell_html(row[col])
|
| 338 |
if isinstance(row[col], ModelCell)
|
|
|
|
| 332 |
text = _fmt_value(row[col], is_score)
|
| 333 |
cls = _cell_class(col, is_score, text is None)
|
| 334 |
weight = ' style="font-weight:700"' if (idx, col) in bold else ""
|
| 335 |
+
guide = (
|
| 336 |
+
_score_guide(str(col), row) if is_score and text is not None else None
|
| 337 |
+
)
|
| 338 |
shown = (
|
| 339 |
_model_cell_html(row[col])
|
| 340 |
if isinstance(row[col], ModelCell)
|