Spaces:
Running
Running
Update app.py
Browse files
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)['
|
73 |
metric_names = pd.read_csv(CSV_RESULT_PATH).columns.tolist()
|
74 |
-
metric_names.remove('
|
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 = ["
|
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(
|