0ad74ed
1
2
3
4
5
6
7
8
9
10
11
12
import numpy as np import gradio as gr def snap(image): return np.flipud(image) demo = gr.Interface(snap, gr.Image(sources=["webcam"]), "image") if __name__ == "__main__": demo.launch()