gradio/demo/webcam/run.py
aliabid94 b4d9825409
Website: WIP (#328)
Ported gradio website into gradio repository, now launched as a docker service from gradio/website
2021-12-13 22:02:19 -08:00

10 lines
214 B
Python

import gradio as gr
import numpy as np
def snap(image):
return np.flipud(image)
iface = gr.Interface(snap, gr.inputs.Image(source="webcam", tool=None), "image")
if __name__ == "__main__":
iface.launch()