Spaces:
Sleeping
Sleeping
Update demo.py
Browse files
demo.py
CHANGED
|
@@ -125,7 +125,10 @@ def generate_new_experiment() -> Experiment:
|
|
| 125 |
random_folder = random.randint(1, 3) # Adjusted to match folder numbering
|
| 126 |
|
| 127 |
# Generate a two-digit sample number as a string
|
| 128 |
-
|
|
|
|
|
|
|
|
|
|
| 129 |
video_name = f"sample00_rep{random_int:02d}.mp4"
|
| 130 |
|
| 131 |
# Paths to the three videos
|
|
|
|
| 125 |
random_folder = random.randint(1, 3) # Adjusted to match folder numbering
|
| 126 |
|
| 127 |
# Generate a two-digit sample number as a string
|
| 128 |
+
if random_folder > 1:
|
| 129 |
+
random_int = random.randint(0, NUMBER_OF_EXPERIMENTS - 1)
|
| 130 |
+
else:
|
| 131 |
+
random_int = random.randint(0, 10)
|
| 132 |
video_name = f"sample00_rep{random_int:02d}.mp4"
|
| 133 |
|
| 134 |
# Paths to the three videos
|