holiday-card-demo-24 / speechtovid.py
papayaga's picture
demo
a8467fc
raw
history blame contribute delete
374 Bytes
import os
import replicate
from pprint import pprint
def get_video(uid, photo_path, audio_path):
output = replicate.run(
"cjwbw/sadtalker:3aa3dac9353cc4d6bd62a8f95957bd844003b401ca4e4a9b33baa574c549d376",
input={
"source_image": open(photo_path, "rb"),
"driven_audio": open(audio_path, "rb"),
}
)
return output