mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-21 01:01:05 +08:00
7 lines
161 B
Python
7 lines
161 B
Python
import gradio as gr
|
|
import numpy as np
|
|
|
|
def snap(image):
|
|
return np.flipud(image)
|
|
|
|
gr.Interface(snap, "webcam", "image", live=True, show_input=False).launch() |