gradio/demo/webcam/run.py
Ömer Faruk Özdemir cc0cff893f Format The Codebase
- black formatting
- isort formatting
2022-01-21 16:44:12 +03:00

13 lines
216 B
Python

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