Alvinn-aai commited on
Commit
27bb580
·
1 Parent(s): 93d4987

fix multiple assignment to sys_type

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -138,11 +138,9 @@ def add_solution_cbk(
138
  return styled_error("Failed to read JSONL submission file. Please try again later.")
139
 
140
  # Validating all user-supplied arguments.
141
- sys_type = "default" # Placeholder
142
  for val, val_name in [
143
  (system_name, "System name"),
144
  (org, "Organisation name"),
145
- # (sys_type, "System type"),
146
  ]:
147
  if len(val) == 0:
148
  return styled_error(f"Please fill in the '{val_name}' field.")
@@ -163,7 +161,6 @@ def add_solution_cbk(
163
  user_id,
164
  system_name,
165
  org,
166
- sys_type, # Passing the placeholder
167
  submission_path,
168
  is_warmup_dataset=(SPLIT == "warmup"),
169
  ensure_all_present=ENSURE_ALL_PRESENT,
 
138
  return styled_error("Failed to read JSONL submission file. Please try again later.")
139
 
140
  # Validating all user-supplied arguments.
 
141
  for val, val_name in [
142
  (system_name, "System name"),
143
  (org, "Organisation name"),
 
144
  ]:
145
  if len(val) == 0:
146
  return styled_error(f"Please fill in the '{val_name}' field.")
 
161
  user_id,
162
  system_name,
163
  org,
 
164
  submission_path,
165
  is_warmup_dataset=(SPLIT == "warmup"),
166
  ensure_all_present=ENSURE_ALL_PRESENT,