20065320rp
commited on
Commit
•
922c4cc
1
Parent(s):
219422d
Update app.py
Browse files
app.py
CHANGED
@@ -37,10 +37,19 @@ def PPE(image):
|
|
37 |
|
38 |
|
39 |
|
40 |
-
demo = gr.Interface(
|
41 |
-
PPE,
|
42 |
-
gr.Image(source="webcam", streaming=True),
|
43 |
-
"image",
|
44 |
-
live=True
|
45 |
-
)
|
46 |
-
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
|
39 |
|
40 |
+
#demo = gr.Interface(
|
41 |
+
# PPE,
|
42 |
+
# gr.Image(source="webcam", streaming=True),
|
43 |
+
# "image",
|
44 |
+
# live=True
|
45 |
+
#)
|
46 |
+
#demo.launch()
|
47 |
+
|
48 |
+
|
49 |
+
|
50 |
+
def snap(image):
|
51 |
+
return np.flipud(image)
|
52 |
+
|
53 |
+
|
54 |
+
iface = gr.Interface(snap, gr.inputs.Image(source="webcam", tool=None), "image")
|
55 |
+
iface.launch()
|