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...
6ee2285
moft_demo
/
app.py
sambal
Create app.py
6ee2285
verified
8 months ago
raw
Copy download link
history
blame
Safe
204 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
)
demo.launch()