Spaces:
Runtime error
Runtime error
Download demos/stream_frames/run.py from aliabd/testing-fork-prs: direct link, hf CLI and curl.
- Browser
- Download file 238 Bytes
-
https://huggingface.co/spaces/aliabd/testing-fork-prs/resolve/main/demos/stream_frames/run.py
- Command line
-
hf download hf://spaces/aliabd/testing-fork-prs/demos/stream_frames/run.py
-
curl -L -o run.py https://huggingface.co/spaces/aliabd/testing-fork-prs/resolve/main/demos/stream_frames/run.py
238 Bytes
| import gradio as gr | |
| import numpy as np | |
| def flip(im): | |
| return np.flipud(im) | |
| demo = gr.Interface( | |
| flip, | |
| gr.Image(source="webcam", streaming=True), | |
| "image", | |
| live=True | |
| ) | |
| if __name__ == "__main__": | |
| demo.launch() | |