jrfish commited on
Commit
89d1322
·
verified ·
1 Parent(s): 0bd55bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ def get_random_image(event=None):
29
  if not jpgs:
30
  return gr.update(value=STATIC_IMAGE_PATH), gr.update(value=STATIC_IMAGE_PATH)
31
 
32
- selected = os.path.join(IMAGE_FOLDER, random.choice(jpgs))
33
  print(selected)
34
  return gr.update(value=selected), gr.update(value=selected)
35
 
 
29
  if not jpgs:
30
  return gr.update(value=STATIC_IMAGE_PATH), gr.update(value=STATIC_IMAGE_PATH)
31
 
32
+ selected = os.path.join(image_dir, random.choice(jpgs))
33
  print(selected)
34
  return gr.update(value=selected), gr.update(value=selected)
35