a7a04f0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gradio as gr def snap(image, video): return [image, video] demo = gr.Interface( snap, [gr.Image(sources=["webcam"]), gr.Video(sources=["webcam"])], ["image", "video"], ) if __name__ == "__main__": demo.launch()