daddyjin's picture
test with tab
b1a1d24
raw
history blame
637 Bytes
import gradio as gr
def tfr(source_img, driving_audio):
return None
tfr_demo = gr.Interface(fn=tfr, inputs=["image", "audio"], outputs="video",
examples=[["./example/images/ABOUT_00514.jpg", "./example/audios/6343252661930009508_00092.wav"],
["./example/images/ABOUT_00994.jpg", "./example/audios/6350921755403330389_00056.wav"]])
def greet(name):
return "Hello, " + name + "!"
fr_demo = gr.Interface(fn=greet, inputs="text", outputs="text")
demo = gr.TabbedInterface([tfr_demo, fr_demo], ["Talking Face Generation", "Face Reenactment"])
info = demo.launch()
print(info)