File size: 465 Bytes
b04d4f9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import os, sys
import tempfile
import gradio as gr
from gradio_demo import SadTalker

def get_source_image(image):
        return image


if __name__ == "__main__":
    src_image_path = './examples/source_image/ABOUT_test_00001.jpg'
    driving_audio_path = './examples/driven_audio/RD_Radio31_000.wav'


    sadtalker = SadTalker(lazy_load=True)
    return_path = sadtalker.test(source_image=src_image_path, driven_audio=driving_audio_path)
    print(return_path)