tlodato commited on
Commit
62a6b82
1 Parent(s): d0436fb
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -1,7 +1,13 @@
1
  import gradio as gr
 
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- iface.launch()
 
 
 
 
 
 
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
+ demo.launch()