mich123geb commited on
Commit
6b0172d
·
verified ·
1 Parent(s): 9dcdd47

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.ANTIALIAS)
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