pratyushmaini commited on
Commit
837dffe
β€’
1 Parent(s): 1884d7e

remove plots

Browse files
Files changed (1) hide show
  1. app.py +33 -33
app.py CHANGED
@@ -98,39 +98,39 @@ with demo:
98
  outputs=leaderboard_table
99
  )
100
 
101
- with gr.TabItem("Plots"):
102
- version_dropdown_plots = gr.Dropdown(
103
- choices=["llama", "phi", "stable-lm"],
104
- label="πŸ”„ Select Base Model",
105
- value="llama",
106
- )
107
-
108
- with gr.Row():
109
- methods_checkbox = gr.CheckboxGroup(
110
- label="Select Methods",
111
- choices=list(load_data("llama", "10%")['Method'].unique()), # To be populated dynamically
112
- )
113
-
114
- plot_output = gr.Plot()
115
-
116
- # Dynamically update the choices for the methods checkbox
117
- def update_method_choices(version):
118
- df = load_data(version)
119
- methods = df['Method'].unique()
120
- methods_checkbox.update(choices=methods)
121
- return df
122
-
123
- version_dropdown_plots.change(
124
- update_method_choices,
125
- inputs=version_dropdown_plots,
126
- outputs=[methods_checkbox, plot_output]
127
- )
128
-
129
- methods_checkbox.change(
130
- create_plots,
131
- inputs=[methods_checkbox, leaderboard_table],
132
- outputs=plot_output
133
- )
134
 
135
  # Launch the app
136
 
 
98
  outputs=leaderboard_table
99
  )
100
 
101
+ # with gr.TabItem("Plots"):
102
+ # version_dropdown_plots = gr.Dropdown(
103
+ # choices=["llama", "phi", "stable-lm"],
104
+ # label="πŸ”„ Select Base Model",
105
+ # value="llama",
106
+ # )
107
+
108
+ # with gr.Row():
109
+ # methods_checkbox = gr.CheckboxGroup(
110
+ # label="Select Methods",
111
+ # choices=list(load_data("llama", "10%")['Method'].unique()), # To be populated dynamically
112
+ # )
113
+
114
+ # plot_output = gr.Plot()
115
+
116
+ # # Dynamically update the choices for the methods checkbox
117
+ # def update_method_choices(version):
118
+ # df = load_data(version)
119
+ # methods = df['Method'].unique()
120
+ # methods_checkbox.update(choices=methods)
121
+ # return df
122
+
123
+ # version_dropdown_plots.change(
124
+ # update_method_choices,
125
+ # inputs=version_dropdown_plots,
126
+ # outputs=[methods_checkbox, plot_output]
127
+ # )
128
+
129
+ # methods_checkbox.change(
130
+ # create_plots,
131
+ # inputs=[methods_checkbox, leaderboard_table],
132
+ # outputs=plot_output
133
+ # )
134
 
135
  # Launch the app
136