Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
sambal
/
moft_demo
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
d75afe5
moft_demo
/
app.py
sambal
Update app.py
d75afe5
verified
6 months ago
raw
Copy download link
history
blame
Safe
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()