xinchen9 commited on
Commit
da0039b
1 Parent(s): 86edf9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -88,7 +88,7 @@ def update_table(
88
  hidden_df: pd.DataFrame,
89
  model1_column: list,
90
  #type_query: list,
91
- open_query: list,
92
  # precision_query: str,
93
  # size_query: list,
94
  # show_deleted: bool,
@@ -98,7 +98,7 @@ def update_table(
98
  # filtered_df = filter_queries(query, filtered_df)
99
  # df = select_columns(filtered_df, columns)
100
  filtered_df = hidden_df.copy()
101
- print(open_query)
102
 
103
  # filtered_df = filtered_df[filtered_df['Unlearned_Methods'].isin(open_query)]
104
  # map_open = {'open': 'Yes', 'closed': 'No'}
@@ -197,13 +197,13 @@ with demo:
197
  interactive=True,
198
  elem_id="column-select",
199
  )
200
- with gr.Row():
201
- open_query = gr.CheckboxGroup(
202
- label="Model",
203
- choices=["SD V1.4","SD V1.5", "SD V2.0"],
204
- interactive=True,
205
- elem_id="column-select",
206
- )
207
  # with gr.Column(min_width=320):
208
  # with gr.Row():
209
  # shown_columns_1 = gr.CheckboxGroup(
@@ -258,7 +258,7 @@ with demo:
258
  model1_column,
259
  # shown_columns,
260
  #type_query,
261
- open_query,
262
  # filter_columns_type,
263
  # filter_columns_precision,
264
  # filter_columns_size,
@@ -269,7 +269,7 @@ with demo:
269
  )
270
 
271
  #for selector in [type_query, open_query]:
272
- for selector in [open_query,model1_column]:
273
  selector.change(
274
  update_table,
275
  [
@@ -278,7 +278,7 @@ with demo:
278
  model1_column,
279
  # shown_columns,
280
  #type_query,
281
- open_query,
282
  # filter_columns_type,
283
  # filter_columns_precision,
284
  # filter_columns_size,
 
88
  hidden_df: pd.DataFrame,
89
  model1_column: list,
90
  #type_query: list,
91
+ #open_query: list,
92
  # precision_query: str,
93
  # size_query: list,
94
  # show_deleted: bool,
 
98
  # filtered_df = filter_queries(query, filtered_df)
99
  # df = select_columns(filtered_df, columns)
100
  filtered_df = hidden_df.copy()
101
+ # print(open_query)
102
 
103
  # filtered_df = filtered_df[filtered_df['Unlearned_Methods'].isin(open_query)]
104
  # map_open = {'open': 'Yes', 'closed': 'No'}
 
197
  interactive=True,
198
  elem_id="column-select",
199
  )
200
+ # with gr.Row():
201
+ # open_query = gr.CheckboxGroup(
202
+ # label="Model",
203
+ # choices=["SD V1.4","SD V1.5", "SD V2.0"],
204
+ # interactive=True,
205
+ # elem_id="column-select",
206
+ # )
207
  # with gr.Column(min_width=320):
208
  # with gr.Row():
209
  # shown_columns_1 = gr.CheckboxGroup(
 
258
  model1_column,
259
  # shown_columns,
260
  #type_query,
261
+ #open_query,
262
  # filter_columns_type,
263
  # filter_columns_precision,
264
  # filter_columns_size,
 
269
  )
270
 
271
  #for selector in [type_query, open_query]:
272
+ for selector in [model1_column]:
273
  selector.change(
274
  update_table,
275
  [
 
278
  model1_column,
279
  # shown_columns,
280
  #type_query,
281
+ #open_query,
282
  # filter_columns_type,
283
  # filter_columns_precision,
284
  # filter_columns_size,