Spaces:
Sleeping
Sleeping
fix width
Browse files
app.py
CHANGED
@@ -125,9 +125,9 @@ def filter_with_metric(df, selected_runs, metric_name):
|
|
125 |
kept_metrics = [f"metric_{metric_name}_{run_name}" for run_name in selected_runs]
|
126 |
other_metrics = [col for col in df.columns if col.startswith(f"metric_") and col not in kept_metrics]
|
127 |
df = df.drop(columns=other_metrics)
|
128 |
-
widths = get_column_widths(df)
|
129 |
df = consize_runname_metric(df, selected_runs, metric_name)
|
130 |
-
return gr.update(value=df,
|
131 |
|
132 |
def get_column_widths(df):
|
133 |
column_widths = []
|
|
|
125 |
kept_metrics = [f"metric_{metric_name}_{run_name}" for run_name in selected_runs]
|
126 |
other_metrics = [col for col in df.columns if col.startswith(f"metric_") and col not in kept_metrics]
|
127 |
df = df.drop(columns=other_metrics)
|
128 |
+
# widths = get_column_widths(df)
|
129 |
df = consize_runname_metric(df, selected_runs, metric_name)
|
130 |
+
return gr.update(value=df, row_count=(100, 'fixed'))
|
131 |
|
132 |
def get_column_widths(df):
|
133 |
column_widths = []
|