Spaces:
Runtime error
Runtime error
Update app.py
Browse files49 unmodified lines50515253545556575859606110 unmodified lines7273747576777829 unmodified lines10810911011111211311449 unmodified lines<br/><b>Alternatively, try our GitHub <a href=https://github.com/Winfredy/SadTalker> code </a> on your own GPU. </b> <a style='display:inline-block' href="https://github.com/Winfredy/SadTalker"><img src="https://img.shields.io/github/stars/Winfredy/SadTalker?style=social"/></a> \""")with gr.Row().style(equal_height=False):with gr.Column(variant='panel'):with gr.Tabs(elem_id="sadtalker_source_image"):with gr.TabItem('Source image'):with gr.Row():source_image = gr.Image(label="Source image", source="upload", type="filepath", elem_id="img2img_image").style(width=512)with gr.Tabs(elem_id="sadtalker_driven_audio"):10 unmodified linesuse_idle_mode.change(toggle_audio_file, inputs=use_idle_mode, outputs=[driven_audio, driven_audio_no]) # todowith gr.Row():ref_video = gr.Video(label="Reference Video", source="upload", type="filepath", elem_id="vidref").style(width=512)with gr.Column():use_ref_video = gr.Checkbox(label="Use Reference Video")29 unmodified linessubmit = gr.Button('Generate', elem_id="sadtalker_generate", variant='primary')with gr.Tabs(elem_id="sadtalker_genearted"):gen_video = gr.Video(label="Generated video", format="mp4").style(width=256)49 unmodified lines50515253545556575859606110 unmodified lines7273747576777829 unmodified lines10810911011111211311449 unmodified lines<br/><b>Alternatively, try our GitHub <a href=https://github.com/Winfredy/SadTalker> code </a> on your own GPU. </b> <a style='display:inline-block' href="https://github.com/Winfredy/SadTalker"><img src="https://img.shields.io/github/stars/Winfredy/SadTalker?style=social"/></a> \""")with gr.Row() #.style(equal_height=False):with gr.Column(variant='panel'):with gr.Tabs(elem_id="sadtalker_source_image"):with gr.TabItem('Source image'):with gr.Row():source_image = gr.Image(label="Source image", source="upload", type="filepath", elem_id="img2img_image") # .style(width=512)with gr.Tabs(elem_id="sadtalker_driven_audio"):10 unmodified linesuse_idle_mode.change(toggle_audio_file, inputs=use_idle_mode, outputs=[driven_audio, driven_audio_no]) # todowith gr.Row():ref_video = gr.Video(label="Reference Video", source="upload", type="filepath", elem_id="vidref") # .style(width=512)with gr.Column():use_ref_video = gr.Checkbox(label="Use Reference Video")29 unmodified linessubmit = gr.Button('Generate', elem_id="sadtalker_generate", variant='primary')with gr.Tabs(elem_id="sadtalker_genearted"):gen_video = gr.Video(label="Generated video", format="mp4", scale=1) # .style(width=256)
app.py+4-4