Spaces:
Sleeping
Sleeping
File size: 374 Bytes
a8467fc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
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
|