mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
12 lines
188 B
Python
12 lines
188 B
Python
import gradio as gr
|
|
|
|
|
|
def snap(image):
|
|
return image
|
|
|
|
|
|
io = gr.Interface(snap, gr.inputs.Image(shape=(100,100), image_mode="L", source="webcam"), "image")
|
|
|
|
io.test_launch()
|
|
io.launch()
|