Spaces:
Runtime error
Runtime error
Tristan Thrush
commited on
Commit
·
679fbc2
1
Parent(s):
294c252
added rounding to 4 places instead of 2
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ def parse_metric_value(value):
|
|
| 29 |
value = value[0]
|
| 30 |
else:
|
| 31 |
value = None
|
| 32 |
-
value = round(value,
|
| 33 |
return value
|
| 34 |
|
| 35 |
|
|
@@ -203,7 +203,7 @@ if len(dataset_df) > 0:
|
|
| 203 |
cellRenderer=JsCode('''function(params) {return '<a target="_blank" href="https://huggingface.co/'+params.value+'">'+params.value+'</a>'}'''),
|
| 204 |
)
|
| 205 |
for name in selectable_metrics:
|
| 206 |
-
gb.configure_column(name, type=["numericColumn","numberColumnFilter","customNumericFormat"], precision=
|
| 207 |
|
| 208 |
gb.configure_column(
|
| 209 |
sorting_metric,
|
|
|
|
| 29 |
value = value[0]
|
| 30 |
else:
|
| 31 |
value = None
|
| 32 |
+
value = round(value, 4) if isinstance(value, float) else None
|
| 33 |
return value
|
| 34 |
|
| 35 |
|
|
|
|
| 203 |
cellRenderer=JsCode('''function(params) {return '<a target="_blank" href="https://huggingface.co/'+params.value+'">'+params.value+'</a>'}'''),
|
| 204 |
)
|
| 205 |
for name in selectable_metrics:
|
| 206 |
+
gb.configure_column(name, type=["numericColumn","numberColumnFilter","customNumericFormat"], precision=4, aggFunc='sum')
|
| 207 |
|
| 208 |
gb.configure_column(
|
| 209 |
sorting_metric,
|