wenyi commited on
Commit
bf76071
·
verified ·
1 Parent(s): 0c31e8d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -59,8 +59,8 @@ def download_csv():
59
  submission_repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL, use_auth_token=HF_TOKEN,
60
  repo_type="dataset")
61
  submission_repo.git_pull()
62
- # return CSV_DIR, gr.update(visible=True)
63
- return CSV_DIR
64
 
65
 
66
  def upload_file(files):
@@ -302,7 +302,7 @@ with block:
302
  result_download = gr.Button("Download Leaderboard")
303
  file_download = gr.File(label="download the csv of leaderborad.", visible=False)
304
  data_run.click(on_filter_model_size_method_change, inputs=[checkbox_group], outputs=data_component)
305
- result_download.click(download_csv, inputs=None, outputs=[file_download])
306
 
307
 
308
 
 
59
  submission_repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL, use_auth_token=HF_TOKEN,
60
  repo_type="dataset")
61
  submission_repo.git_pull()
62
+ return CSV_DIR, gr.update(visible=True)
63
+ # return CSV_DIR
64
 
65
 
66
  def upload_file(files):
 
302
  result_download = gr.Button("Download Leaderboard")
303
  file_download = gr.File(label="download the csv of leaderborad.", visible=False)
304
  data_run.click(on_filter_model_size_method_change, inputs=[checkbox_group], outputs=data_component)
305
+ result_download.click(download_csv, inputs=None, outputs=[file_download, file_download])
306
 
307
 
308