20065320rp
commited on
Commit
•
8bffa72
1
Parent(s):
aac9ee0
Update app.py
Browse files
app.py
CHANGED
@@ -47,9 +47,19 @@ def PPE(image):
|
|
47 |
|
48 |
|
49 |
|
50 |
-
def snap(image):
|
51 |
-
return np.flipud(image)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
|
53 |
|
54 |
-
iface = gr.Interface(PPE, gr.inputs.Image(source="webcam", tool=None), "image")
|
55 |
-
iface.launch()
|
|
|
47 |
|
48 |
|
49 |
|
50 |
+
#def snap(image):
|
51 |
+
# return np.flipud(image)
|
52 |
+
|
53 |
+
|
54 |
+
#iface = gr.Interface(PPE, gr.inputs.Image(source="webcam", tool=None), "image")
|
55 |
+
#iface.launch()
|
56 |
+
|
57 |
+
|
58 |
+
demo = gr.Interface(
|
59 |
+
fn=PPE,
|
60 |
+
inputs=gr.inputs.Image(source="webcam", tool=None),
|
61 |
+
outputs=render,
|
62 |
+
)
|
63 |
+
demo.launch()
|
64 |
|
65 |
|
|
|
|