moft_demo / app.py
sambal's picture
Update app.py
d75afe5 verified
raw
history blame
212 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),
outputs="image",
live=True
)
demo.launch()