Spaces:
Running
Running
Upload 2 files
Browse files- myinfer_latest.py +2 -1
- requirements.txt +2 -1
myinfer_latest.py
CHANGED
@@ -257,7 +257,8 @@ def merge_audio_image(mp3_path, image_path, output_dir, unique_id):
|
|
257 |
image_clip = image_clip.set_duration(audio_clip.duration)
|
258 |
|
259 |
# Resize the image clip to Instagram's square dimensions (1080x1080)
|
260 |
-
image_clip = image_clip.resize((1080, 1080))
|
|
|
261 |
|
262 |
# Set the audio to the image clip
|
263 |
final_clip = image_clip.set_audio(audio_clip)
|
|
|
257 |
image_clip = image_clip.set_duration(audio_clip.duration)
|
258 |
|
259 |
# Resize the image clip to Instagram's square dimensions (1080x1080)
|
260 |
+
#image_clip = image_clip.resize((1080, 1080))
|
261 |
+
image_clip = image_clip.resize((1080, 1080), resample='lanczos')
|
262 |
|
263 |
# Set the audio to the image clip
|
264 |
final_clip = image_clip.set_audio(audio_clip)
|
requirements.txt
CHANGED
@@ -25,4 +25,5 @@ rarfile
|
|
25 |
mega.py
|
26 |
gdown
|
27 |
moviepy
|
28 |
-
ffmpeg-python
|
|
|
|
25 |
mega.py
|
26 |
gdown
|
27 |
moviepy
|
28 |
+
ffmpeg-python
|
29 |
+
pillow
|