hynky HF staff commited on
Commit
d10da92
·
1 Parent(s): d719fb7
Files changed (1) hide show
  1. app.py +2 -2
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, column_widths=widths, row_count=(100, 'fixed'))
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 = []