nsfwalex commited on
Commit
ab999ac
·
verified ·
1 Parent(s): aa186ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -319,7 +319,7 @@ with gr.Blocks(css=css,head=js,fill_height=True) as demo:
319
  existing_images = [img for img in default_image if os.path.exists(img)]
320
  #print(f"found cover files: {existing_images}")
321
  if existing_images:
322
- default_image = random.choice(existing_images)
323
  else:
324
  default_image = None
325
  elif not os.path.exists(default_image):
 
319
  existing_images = [img for img in default_image if os.path.exists(img)]
320
  #print(f"found cover files: {existing_images}")
321
  if existing_images:
322
+ default_image = existing_images[int(time.time())%len(existing_images)]
323
  else:
324
  default_image = None
325
  elif not os.path.exists(default_image):