quantumiracle-git commited on
Commit
b74a384
·
1 Parent(s): 9d0eab4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -120,7 +120,7 @@ def update(user_choice, left, right, choose_env, data_folder=VIDEO_PATH, flag_to
120
  repo.git_pull(lfs=True) # sync with remote first
121
  repo.push_to_hub(commit_message=f"Flagged sample at {current_time}")
122
  if choose_env == 'Random' or choose_env == '': # random or no selection
123
- envs = parse_envs()
124
  env_name = envs[random.randint(0, len(envs)-1)]
125
  else:
126
  env_name = choose_env
 
120
  repo.git_pull(lfs=True) # sync with remote first
121
  repo.push_to_hub(commit_message=f"Flagged sample at {current_time}")
122
  if choose_env == 'Random' or choose_env == '': # random or no selection
123
+ envs = get_env_names()
124
  env_name = envs[random.randint(0, len(envs)-1)]
125
  else:
126
  env_name = choose_env