Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,6 +16,12 @@ import yt_dlp
|
|
| 16 |
import json
|
| 17 |
from datetime import datetime
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
# --- Configuration ---
|
| 20 |
OUTPUT_DIR = Path("nightpulse_output")
|
| 21 |
TEMP_DIR = Path("temp_processing")
|
|
|
|
| 16 |
import json
|
| 17 |
from datetime import datetime
|
| 18 |
|
| 19 |
+
# --- PATCH FOR PILLOW 10.0+ vs MOVIEPY 1.0.3 COMPATIBILITY ---
|
| 20 |
+
import PIL.Image
|
| 21 |
+
if not hasattr(PIL.Image, 'ANTIALIAS'):
|
| 22 |
+
PIL.Image.ANTIALIAS = PIL.Image.LANCZOS
|
| 23 |
+
# -------------------------------------------------------------
|
| 24 |
+
|
| 25 |
# --- Configuration ---
|
| 26 |
OUTPUT_DIR = Path("nightpulse_output")
|
| 27 |
TEMP_DIR = Path("temp_processing")
|