xinchen9 commited on
Commit
6f2a3a1
1 Parent(s): ecc41de

[Update]Add line 158-185

Browse files
Files changed (1) hide show
  1. app.py +29 -1
app.py CHANGED
@@ -154,7 +154,35 @@ with demo:
154
  1, 100, value=40,
155
  step=1, label="Attacking Steps", info="Choose between 1 and 100",
156
  interactive=True,)
157
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
158
  # with gr.Row():
159
  # shown_columns = gr.CheckboxGroup(
160
  # choices=[
 
154
  1, 100, value=40,
155
  step=1, label="Attacking Steps", info="Choose between 1 and 100",
156
  interactive=True,)
157
+
158
+ leaderboard_table = gr.components.Dataframe(
159
+ value= raw_data,
160
+ elem_id="leaderboard-table",
161
+ interactive=False,
162
+ visible=True,
163
+ )
164
+
165
+ game_bench_df_for_search = gr.components.Dataframe(
166
+ value= raw_data,
167
+ elem_id="leaderboard-table",
168
+ interactive=False,
169
+ visible=False,
170
+ )
171
+
172
+
173
+ for selector in [shown_columns_1,shown_columns_2, shown_columns_3, model1_column]:
174
+ selector.change(
175
+ update_table,
176
+ [
177
+ game_bench_df_for_search,
178
+ shown_columns_1,
179
+ shown_columns_2,
180
+ shown_columns_3,
181
+ model1_column,
182
+ ],
183
+ leaderboard_table,
184
+ queue=True,
185
+ )
186
  # with gr.Row():
187
  # shown_columns = gr.CheckboxGroup(
188
  # choices=[