rynmurdock commited on
Commit
c9cc7c2
1 Parent(s): 7ac7da9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -93,6 +93,8 @@ glob_idx = 0
93
  def next_image(embs, ys, calibrate_prompts):
94
  global glob_idx
95
  glob_idx = glob_idx + 1
 
 
96
 
97
  # handle case where every instance of calibration prompts is 'Neither' or 'Like' or 'Dislike'
98
  if len(calibrate_prompts) == 0 and len(list(set(ys))) <= 1:
 
93
  def next_image(embs, ys, calibrate_prompts):
94
  global glob_idx
95
  glob_idx = glob_idx + 1
96
+ if glob_idx >= 12:
97
+ glob_idx = 0
98
 
99
  # handle case where every instance of calibration prompts is 'Neither' or 'Like' or 'Dislike'
100
  if len(calibrate_prompts) == 0 and len(list(set(ys))) <= 1: