stream_frames / run.py
freddyaboulton's picture
Upload folder using huggingface_hub
79708ae verified
raw
history blame contribute delete
260 Bytes
import gradio as gr
import numpy as np
def flip(im):
return np.flipud(im)
demo = gr.Interface(
flip,
gr.Image(sources=["webcam"], streaming=True),
"image",
live=True,
api_name="predict",
)
if __name__ == "__main__":
demo.launch()