mgyigit commited on
Commit
f24fa7c
1 Parent(s): 0b31888

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -111,7 +111,6 @@ with block:
111
  x_metric_selector = gr.Dropdown(choices=[], label="Select X-axis Metric", visible=False)
112
  y_metric_selector = gr.Dropdown(choices=[], label="Select Y-axis Metric", visible=False)
113
  aspect_type_selector = gr.Dropdown(choices=[], label="Select Aspect Type", visible=False)
114
- dataset_type_selector = gr.Dropdown(choices=[], label="Select Dataset Type", visible=False)
115
  dataset_selector = gr.Dropdown(choices=[], label="Select Dataset", visible=False)
116
  single_metric_selector = gr.Dropdown(choices=[], label="Select Metric", visible=False)
117
 
@@ -128,12 +127,12 @@ with block:
128
  benchmark_type_selector.change(
129
  update_metric_choices,
130
  inputs=[benchmark_type_selector],
131
- outputs=[x_metric_selector, y_metric_selector, aspect_type_selector, dataset_type_selector, dataset_selector, single_metric_selector]
132
  )
133
 
134
  plot_button.click(
135
  benchmark_plot,
136
- inputs=[benchmark_type_selector, method_selector, x_metric_selector, y_metric_selector, aspect_type_selector, dataset_type_selector, dataset_selector, single_metric_selector],
137
  outputs=plot_output
138
  )
139
 
 
111
  x_metric_selector = gr.Dropdown(choices=[], label="Select X-axis Metric", visible=False)
112
  y_metric_selector = gr.Dropdown(choices=[], label="Select Y-axis Metric", visible=False)
113
  aspect_type_selector = gr.Dropdown(choices=[], label="Select Aspect Type", visible=False)
 
114
  dataset_selector = gr.Dropdown(choices=[], label="Select Dataset", visible=False)
115
  single_metric_selector = gr.Dropdown(choices=[], label="Select Metric", visible=False)
116
 
 
127
  benchmark_type_selector.change(
128
  update_metric_choices,
129
  inputs=[benchmark_type_selector],
130
+ outputs=[x_metric_selector, y_metric_selector, aspect_type_selector, dataset_selector, single_metric_selector]
131
  )
132
 
133
  plot_button.click(
134
  benchmark_plot,
135
+ inputs=[benchmark_type_selector, method_selector, x_metric_selector, y_metric_selector, aspect_type_selector, dataset_selector, single_metric_selector],
136
  outputs=plot_output
137
  )
138