MINGYISU commited on
Commit
7530663
·
1 Parent(s): 8698e36

fixed refresh bugs

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. utils.py +1 -0
app.py CHANGED
@@ -62,7 +62,7 @@ with gr.Blocks() as block:
62
  )
63
 
64
  data_component = gr.components.Dataframe(
65
- value=create_hyperlinked_names(df)[COLUMN_NAMES],
66
  headers=COLUMN_NAMES,
67
  type="pandas",
68
  datatype=DATA_TITLE_TYPE,
 
62
  )
63
 
64
  data_component = gr.components.Dataframe(
65
+ value=df[COLUMN_NAMES],
66
  headers=COLUMN_NAMES,
67
  type="pandas",
68
  datatype=DATA_TITLE_TYPE,
utils.py CHANGED
@@ -128,6 +128,7 @@ def get_df():
128
  df.to_csv(CSV_DIR, index=False) # update local file
129
  df['Model Size(B)'] = df['Model Size(B)'].apply(process_model_size)
130
  df = df.sort_values(by=['Overall'], ascending=False)
 
131
  return df
132
 
133
 
 
128
  df.to_csv(CSV_DIR, index=False) # update local file
129
  df['Model Size(B)'] = df['Model Size(B)'].apply(process_model_size)
130
  df = df.sort_values(by=['Overall'], ascending=False)
131
+ df = create_hyperlinked_names(df)
132
  return df
133
 
134