Spaces:
Sleeping
Sleeping
Commit
·
31f35b1
1
Parent(s):
1ec60dd
updates
Browse files
app.py
CHANGED
|
@@ -92,6 +92,7 @@ if reset:
|
|
| 92 |
|
| 93 |
image_folder = "images"
|
| 94 |
image_files = [f for f in os.listdir(image_folder) if f.endswith(('.png', '.jpg', '.jpeg'))]
|
|
|
|
| 95 |
lock = threading.Lock()
|
| 96 |
|
| 97 |
|
|
@@ -143,7 +144,7 @@ def get_next_image(session_data):
|
|
| 143 |
available_images.append(img)
|
| 144 |
|
| 145 |
# print("Available images:", available_images) # Debugging line
|
| 146 |
-
|
| 147 |
# random.shuffle(available_images)
|
| 148 |
|
| 149 |
# Check if the user already has an image
|
|
|
|
| 92 |
|
| 93 |
image_folder = "images"
|
| 94 |
image_files = [f for f in os.listdir(image_folder) if f.endswith(('.png', '.jpg', '.jpeg'))]
|
| 95 |
+
len_files = len(image_files)
|
| 96 |
lock = threading.Lock()
|
| 97 |
|
| 98 |
|
|
|
|
| 144 |
available_images.append(img)
|
| 145 |
|
| 146 |
# print("Available images:", available_images) # Debugging line
|
| 147 |
+
print("Remaining images: ", len_files - len(available_images))
|
| 148 |
# random.shuffle(available_images)
|
| 149 |
|
| 150 |
# Check if the user already has an image
|