ynhe commited on
Commit
b39984e
1 Parent(s): 7df350d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -26,6 +26,7 @@ def add_new_eval(
26
  model_name_textbox: str,
27
  revision_name_textbox: str,
28
  model_link: str,
 
29
  contact_email: str
30
  ):
31
  if input_file is None:
@@ -98,7 +99,10 @@ def add_new_eval(
98
  new_data.append(upload_data[key])
99
  else:
100
  new_data.append(0)
101
- new_data.append("User Upload")
 
 
 
102
  new_data.append(contact_email)
103
  csv_data.loc[col] = new_data
104
  csv_data = csv_data.to_csv(CSV_DIR, index=False)
@@ -541,6 +545,7 @@ with block:
541
  model_name_textbox,
542
  revision_name_textbox,
543
  model_link,
 
544
  contact_email
545
  ],
546
  outputs=[submit_button, submit_succ_button, fail_textbox]
 
26
  model_name_textbox: str,
27
  revision_name_textbox: str,
28
  model_link: str,
29
+ team_name: str,
30
  contact_email: str
31
  ):
32
  if input_file is None:
 
99
  new_data.append(upload_data[key])
100
  else:
101
  new_data.append(0)
102
+ if team_name =='' or 'vbench' in team_name.lower():
103
+ new_data.append("User Upload")
104
+ else:
105
+ new_data.append(team_name)
106
  new_data.append(contact_email)
107
  csv_data.loc[col] = new_data
108
  csv_data = csv_data.to_csv(CSV_DIR, index=False)
 
545
  model_name_textbox,
546
  revision_name_textbox,
547
  model_link,
548
+ team_name,
549
  contact_email
550
  ],
551
  outputs=[submit_button, submit_succ_button, fail_textbox]