Fix round typing bug
Browse files
app.py
CHANGED
@@ -88,7 +88,7 @@ def load_images():
|
|
88 |
fake_image_folder = "fake_images"
|
89 |
real_images = [os.path.join(real_image_folder, img) for img in os.listdir(real_image_folder)]
|
90 |
fake_images = [os.path.join(fake_image_folder, img) for img in os.listdir(fake_image_folder)]
|
91 |
-
selected_images = random.sample(real_images, NUM_ROUNDS
|
92 |
random.shuffle(selected_images)
|
93 |
return selected_images
|
94 |
|
|
|
88 |
fake_image_folder = "fake_images"
|
89 |
real_images = [os.path.join(real_image_folder, img) for img in os.listdir(real_image_folder)]
|
90 |
fake_images = [os.path.join(fake_image_folder, img) for img in os.listdir(fake_image_folder)]
|
91 |
+
selected_images = random.sample(real_images, NUM_ROUNDS // 2) + random.sample(fake_images, NUM_ROUNDS // 2)
|
92 |
random.shuffle(selected_images)
|
93 |
return selected_images
|
94 |
|