mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-27 02:30:17 +08:00
cc0cff893f
- black formatting - isort formatting
13 lines
216 B
Python
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()
|