Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -339,7 +339,7 @@ def generate_video(
|
|
| 339 |
print("Prompt:", prompt)
|
| 340 |
if "child" in prompt.lower():
|
| 341 |
print("Found 'child' in prompt. Exiting loop.")
|
| 342 |
-
|
| 343 |
|
| 344 |
num_frames = np.clip(int(round(duration_seconds * FIXED_FPS)), MIN_FRAMES_MODEL, MAX_FRAMES_MODEL)
|
| 345 |
current_seed = random.randint(0, MAX_SEED) if randomize_seed else int(seed)
|
|
|
|
| 339 |
print("Prompt:", prompt)
|
| 340 |
if "child" in prompt.lower():
|
| 341 |
print("Found 'child' in prompt. Exiting loop.")
|
| 342 |
+
return
|
| 343 |
|
| 344 |
num_frames = np.clip(int(round(duration_seconds * FIXED_FPS)), MIN_FRAMES_MODEL, MAX_FRAMES_MODEL)
|
| 345 |
current_seed = random.randint(0, MAX_SEED) if randomize_seed else int(seed)
|