mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-17 11:29:58 +08:00
* start * change api * integrate into gradio * log * try this * format * changes * format * fix css * fix file
15 lines
238 B
Python
15 lines
238 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()
|
|
|