mgyigit commited on
Commit
81cfe6d
·
verified ·
1 Parent(s): 240e2ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -69,9 +69,9 @@ with block:
69
 
70
  # Add the visualizer components (Dropdown, Checkbox, Button, Image)
71
  with gr.Row():
72
- method_names = pd.read_csv(CSV_RESULT_PATH)['Method'].unique().tolist()
73
  metric_names = pd.read_csv(CSV_RESULT_PATH).columns.tolist()
74
- metric_names.remove('Method') # Remove Method from the metric options
75
 
76
  # Visualizer Controls: Smaller and underneath each other
77
  with gr.Column(scale=1):
@@ -94,7 +94,7 @@ with block:
94
  ) # User can select the evaluation dimension
95
 
96
  baseline_value = get_baseline_df()
97
- baseline_header = ["Method"] + checkbox_group.value
98
  baseline_datatype = ['markdown'] + ['number'] * len(checkbox_group.value)
99
 
100
  data_component = gr.components.Dataframe(
 
69
 
70
  # Add the visualizer components (Dropdown, Checkbox, Button, Image)
71
  with gr.Row():
72
+ method_names = pd.read_csv(CSV_RESULT_PATH)['method_name'].unique().tolist()
73
  metric_names = pd.read_csv(CSV_RESULT_PATH).columns.tolist()
74
+ metric_names.remove('method_name') # Remove Method from the metric options
75
 
76
  # Visualizer Controls: Smaller and underneath each other
77
  with gr.Column(scale=1):
 
94
  ) # User can select the evaluation dimension
95
 
96
  baseline_value = get_baseline_df()
97
+ baseline_header = ["method_name"] + checkbox_group.value
98
  baseline_datatype = ['markdown'] + ['number'] * len(checkbox_group.value)
99
 
100
  data_component = gr.components.Dataframe(