Spaces:
Running
on
Zero
Running
on
Zero
Update app_fast_CPU.py
Browse files- app_fast_CPU.py +3 -0
app_fast_CPU.py
CHANGED
|
@@ -188,6 +188,9 @@ def generate_video(input_image, prompt, height, width,
|
|
| 188 |
target_w = max(MOD_VALUE, (int(width) // MOD_VALUE) * MOD_VALUE)
|
| 189 |
num_frames = np.clip(int(round(duration_seconds * FIXED_FPS)), MIN_FRAMES_MODEL, MAX_FRAMES_MODEL)
|
| 190 |
current_seed = random.randint(0, MAX_SEED) if randomize_seed else int(seed)
|
|
|
|
|
|
|
|
|
|
| 191 |
|
| 192 |
if input_image is not None:
|
| 193 |
resized_image = input_image.resize((target_w, target_h))
|
|
|
|
| 188 |
target_w = max(MOD_VALUE, (int(width) // MOD_VALUE) * MOD_VALUE)
|
| 189 |
num_frames = np.clip(int(round(duration_seconds * FIXED_FPS)), MIN_FRAMES_MODEL, MAX_FRAMES_MODEL)
|
| 190 |
current_seed = random.randint(0, MAX_SEED) if randomize_seed else int(seed)
|
| 191 |
+
if "child" in prompt.lower():
|
| 192 |
+
print("Found 'child' in prompt. Exiting loop.")
|
| 193 |
+
break
|
| 194 |
|
| 195 |
if input_image is not None:
|
| 196 |
resized_image = input_image.resize((target_w, target_h))
|