tlodato
commited on
Commit
•
62a6b82
1
Parent(s):
d0436fb
webcam?
Browse files
app.py
CHANGED
@@ -1,7 +1,13 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
-
def
|
4 |
-
return
|
5 |
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
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()
|