MINGYISU commited on
Commit
8698e36
·
verified ·
1 Parent(s): 5d10667

update submit instruction (#13)

Browse files

- update submit instruction (740be0cd7d5079d401bd95e9640e389c9387c851)

Files changed (2) hide show
  1. app.py +0 -1
  2. utils.py +3 -0
app.py CHANGED
@@ -61,7 +61,6 @@ with gr.Blocks() as block:
61
  elem_id="tasks-select"
62
  )
63
 
64
- print(create_hyperlinked_names(df)[COLUMN_NAMES])
65
  data_component = gr.components.Dataframe(
66
  value=create_hyperlinked_names(df)[COLUMN_NAMES],
67
  headers=COLUMN_NAMES,
 
61
  elem_id="tasks-select"
62
  )
63
 
 
64
  data_component = gr.components.Dataframe(
65
  value=create_hyperlinked_names(df)[COLUMN_NAMES],
66
  headers=COLUMN_NAMES,
utils.py CHANGED
@@ -83,6 +83,7 @@ SUBMIT_INTRODUCTION = """# Submit on MMEB Leaderboard Introduction
83
  [
84
  {
85
  "Model": "<Model Name>",
 
86
  "Model Size(B)": 1000,
87
  "Data Source": TIGER-Lab,
88
  "Overall": 50.0,
@@ -142,6 +143,8 @@ def add_new_eval(input_file):
142
  if not col in upload_data.keys():
143
  return f"Error! Missing {col} column!"
144
  data_row += [upload_data[col]]
 
 
145
  print("data_row:\n", data_row)
146
  submission_repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL,
147
  use_auth_token=HF_TOKEN, repo_type="space")
 
83
  [
84
  {
85
  "Model": "<Model Name>",
86
+ <Optional>"URL": "<Model URL>",
87
  "Model Size(B)": 1000,
88
  "Data Source": TIGER-Lab,
89
  "Overall": 50.0,
 
143
  if not col in upload_data.keys():
144
  return f"Error! Missing {col} column!"
145
  data_row += [upload_data[col]]
146
+ if 'URL' in upload_data.keys():
147
+ MODEL_URLS[upload_data['Model']] = upload_data['URL']
148
  print("data_row:\n", data_row)
149
  submission_repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL,
150
  use_auth_token=HF_TOKEN, repo_type="space")