Spaces:
Sleeping
Sleeping
Update styled_video_gen.py
Browse files- styled_video_gen.py +1 -1
styled_video_gen.py
CHANGED
|
@@ -332,7 +332,7 @@ def create_styled_video(images, audio_files, section_texts, output_path, config=
|
|
| 332 |
except Exception as e:
|
| 333 |
logger.error(f"❌ Failed to process image {i+1}: {e}. Creating black frame.")
|
| 334 |
# Use a black frame as placeholder to avoid crashing
|
| 335 |
-
img_clip = ColorClip(size=(width, height), color=(0,0,0), duration=duration)
|
| 336 |
clips_to_close.append(img_clip)
|
| 337 |
|
| 338 |
# --- Create Audio Clip ---
|
|
|
|
| 332 |
except Exception as e:
|
| 333 |
logger.error(f"❌ Failed to process image {i+1}: {e}. Creating black frame.")
|
| 334 |
# Use a black frame as placeholder to avoid crashing
|
| 335 |
+
img_clip = ColorClip(size=(width, height), color=(0,0,0), duration=duration)
|
| 336 |
clips_to_close.append(img_clip)
|
| 337 |
|
| 338 |
# --- Create Audio Clip ---
|