gradio/demo/stream_frames/run.py
pngwn fddf376784
JS client take 2 (#3388)
* start

* change api

* integrate into gradio

* log

* try this

* format

* changes

* format

* fix css

* fix file
2023-03-07 16:36:25 +00:00

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()