Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -224,13 +224,7 @@ with block:
|
|
224 |
baseline_value = baseline_value.applymap(lambda x: round(x, 4) if isinstance(x, (int, float)) else x)
|
225 |
baseline_value['Method'] = baseline_value['Method'].apply(format_method)
|
226 |
baseline_header = ["Method"] + metric_names
|
227 |
-
baseline_datatype = ['markdown'] + ['number'] * len(metric_names)
|
228 |
-
|
229 |
-
initial_html = baseline_value.style\
|
230 |
-
.applymap(style_methods, subset=["Method"])\
|
231 |
-
.set_table_attributes('class="dataframe"')\
|
232 |
-
._render()
|
233 |
-
|
234 |
|
235 |
with gr.Row(show_progress=True, variant='panel'):
|
236 |
data_component = gr.Dataframe(
|
|
|
224 |
baseline_value = baseline_value.applymap(lambda x: round(x, 4) if isinstance(x, (int, float)) else x)
|
225 |
baseline_value['Method'] = baseline_value['Method'].apply(format_method)
|
226 |
baseline_header = ["Method"] + metric_names
|
227 |
+
baseline_datatype = ['markdown'] + ['number'] * len(metric_names)
|
|
|
|
|
|
|
|
|
|
|
|
|
228 |
|
229 |
with gr.Row(show_progress=True, variant='panel'):
|
230 |
data_component = gr.Dataframe(
|