mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-07 11:46:51 +08:00
14 lines
233 B
Python
14 lines
233 B
Python
import gradio as gr
|
|
import numpy as np
|
|
|
|
def flip(im):
|
|
return np.flipud(im)
|
|
|
|
demo = gr.Interface(
|
|
flip,
|
|
gr.Image(source="webcam", streaming=True),
|
|
"image",
|
|
live=True
|
|
)
|
|
if __name__ == "__main__":
|
|
demo.launch() |