Update app.py
Browse files
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 =
|
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):
|