Spaces:
Starting
Starting
Update app.py
Browse files
app.py
CHANGED
|
@@ -1370,9 +1370,8 @@ def render_records_table_html(records: list[dict[str, Any]]) -> str:
|
|
| 1370 |
)
|
| 1371 |
kl_value = parse_optional_float(record.get("kl_divergence"))
|
| 1372 |
refusals_value = parse_optional_float(record.get("refusals"))
|
| 1373 |
-
|
| 1374 |
-
|
| 1375 |
-
)
|
| 1376 |
if kl_value is not None:
|
| 1377 |
row_attrs += f' data-kl="{kl_value}"'
|
| 1378 |
if refusals_value is not None:
|
|
|
|
| 1370 |
)
|
| 1371 |
kl_value = parse_optional_float(record.get("kl_divergence"))
|
| 1372 |
refusals_value = parse_optional_float(record.get("refusals"))
|
| 1373 |
+
row_index = len(body_rows)
|
| 1374 |
+
row_attrs = f' data-row-index="{row_index}" data-search="{html.escape(record_search_text(record), quote=True)}"'
|
|
|
|
| 1375 |
if kl_value is not None:
|
| 1376 |
row_attrs += f' data-kl="{kl_value}"'
|
| 1377 |
if refusals_value is not None:
|