File size: 238 Bytes
1aa53a5
 
 
 
 
 
 
 
 
 
 
 
 
46f874f
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()