ynhe commited on
Commit
77fe914
1 Parent(s): 651bda2

[fix] COLUMN_NAMES_I2V

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -312,7 +312,6 @@ def on_filter_model_size_method_change_quality(selected_columns):
312
  return filter_component#.value
313
 
314
  def on_filter_model_size_method_change_i2v(selected_columns):
315
-
316
  updated_data = get_all_df_i2v(selected_columns, I2V_DIR)
317
  selected_columns = [item for item in I2V_TAB if item in selected_columns]
318
  present_columns = MODEL_INFO_TAB_I2V + selected_columns
@@ -320,9 +319,7 @@ def on_filter_model_size_method_change_i2v(selected_columns):
320
  updated_data = updated_data.sort_values(by="Selected Score", ascending=False)
321
  updated_data = convert_scores_to_percentage(updated_data)
322
  updated_headers = present_columns
323
- update_datatype = [DATA_TITILE_TYPE[COLUMN_NAMES.index(x)] for x in updated_headers]
324
- import ipdb
325
- ipdb.set_trace()
326
  # print(updated_data,present_columns,update_datatype)
327
  filter_component = gr.components.Dataframe(
328
  value=updated_data,
 
312
  return filter_component#.value
313
 
314
  def on_filter_model_size_method_change_i2v(selected_columns):
 
315
  updated_data = get_all_df_i2v(selected_columns, I2V_DIR)
316
  selected_columns = [item for item in I2V_TAB if item in selected_columns]
317
  present_columns = MODEL_INFO_TAB_I2V + selected_columns
 
319
  updated_data = updated_data.sort_values(by="Selected Score", ascending=False)
320
  updated_data = convert_scores_to_percentage(updated_data)
321
  updated_headers = present_columns
322
+ update_datatype = [DATA_TITILE_TYPE[COLUMN_NAMES_I2V.index(x)] for x in updated_headers]
 
 
323
  # print(updated_data,present_columns,update_datatype)
324
  filter_component = gr.components.Dataframe(
325
  value=updated_data,