quantumiracle-git commited on
Commit
332e8c3
·
1 Parent(s): 2150951

Update app.py

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