lsb commited on
Commit
247a943
1 Parent(s): 84c2607

following the demo

Browse files
Files changed (2) hide show
  1. app.py +14 -0
  2. requirements.txt +1 -0
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import numpy as np
3
+
4
+ def flip(im):
5
+ return np.flipud(im)
6
+
7
+ demo = gr.Interface(
8
+ flip,
9
+ gr.Image(sources=["webcam"], streaming=True),
10
+ "image",
11
+ live=True
12
+ )
13
+
14
+ demo.launch()
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ numpy