Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def preprocess(image, audio_path):
|
|
| 15 |
output_path = f"{uid}_output.mp4"
|
| 16 |
|
| 17 |
# ✅ Resize image
|
| 18 |
-
image = image.resize((int(image.width * 256 / image.height), 256), Image.
|
| 19 |
image.save(image_path)
|
| 20 |
|
| 21 |
# ✅ Resample audio to 16kHz mono WAV using ffmpeg
|
|
|
|
| 15 |
output_path = f"{uid}_output.mp4"
|
| 16 |
|
| 17 |
# ✅ Resize image
|
| 18 |
+
image = image.resize((int(image.width * 256 / image.height), 256), Image.Resampling.LANCZOS)
|
| 19 |
image.save(image_path)
|
| 20 |
|
| 21 |
# ✅ Resample audio to 16kHz mono WAV using ffmpeg
|