Podfusion / test.py
3v324v23's picture
mostly merged
77f594c
raw
history blame
453 Bytes
import os
from app import animate_images, AudioInput
def get_test_image_paths():
gallery_dir = "temp/images"
return [os.path.join(gallery_dir, img) for img in os.listdir(gallery_dir)][:2]
def get_test_audio_paths():
audio_path = "temp/audio.mp3"
audio_input = AudioInput(audio_path, 10, 10)
return audio_input
image_paths = get_test_image_paths()
audio_input = get_test_audio_paths()
animate_images(image_paths, audio_input)