ariankhalfani commited on
Commit
71f851a
1 Parent(s): 617b1f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -111,7 +111,7 @@ def generate_script_v9(dataset_code, task, model_size, epochs, batch_size):
111
  project_name_match = re.search(r'project\("([^"]+)"\)', dataset_code)
112
  version_number_match = re.search(r'version\((\d+)\)', dataset_code)
113
 
114
- if not (api_key_match and workspace_match and project_name_match and version_number_match)):
115
  return "Error: Could not extract necessary information from the dataset code."
116
 
117
  api_key = api_key_match.group(1)
 
111
  project_name_match = re.search(r'project\("([^"]+)"\)', dataset_code)
112
  version_number_match = re.search(r'version\((\d+)\)', dataset_code)
113
 
114
+ if not (api_key_match and workspace_match and project_name_match and version_number_match):
115
  return "Error: Could not extract necessary information from the dataset code."
116
 
117
  api_key = api_key_match.group(1)