Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
whitphx
/
fastrtc-example-video-flip
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
db18f4a
fastrtc-example-video-flip
/
app.py
whitphx
HF Staff
Init
db18f4a
4 months ago
raw
Copy download link
history
blame
Safe
227 Bytes
from
fastrtc
import
Stream
import
numpy
as
np
def
flip_vertically
(
image
):
return
np.flip(image, axis=
0
)
stream = Stream(
handler=flip_vertically,
modality=
"video"
,
mode=
"send-receive"
,
)
stream.ui.launch()