LanguageBind commited on
Commit
84f5285
1 Parent(s): 794f105

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -36,10 +36,14 @@ def add_new_eval(
36
  if revision_name_textbox == '':
37
  col = csv_data.shape[0]
38
  model_name = model_name_textbox
 
 
 
 
39
  else:
40
  model_name = revision_name_textbox
41
  model_name_list = csv_data['Model']
42
- name_list = [name.split(']')[0][1:] for name in model_name_list]
43
  if revision_name_textbox not in name_list:
44
  col = csv_data.shape[0]
45
  else:
 
36
  if revision_name_textbox == '':
37
  col = csv_data.shape[0]
38
  model_name = model_name_textbox
39
+ name_list = [name.split(']')[0][1:] if name.endswith(')') else name for name in csv_data['Model']]
40
+ print(name_list)
41
+ print(model_name)
42
+ assert model_name not in name_list
43
  else:
44
  model_name = revision_name_textbox
45
  model_name_list = csv_data['Model']
46
+ name_list = [name.split(']')[0][1:] if name.endswith(')') else name for name in model_name_list]
47
  if revision_name_textbox not in name_list:
48
  col = csv_data.shape[0]
49
  else: