20065320rp
commited on
Commit
•
ac798f8
1
Parent(s):
02975ed
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,9 @@ from cv2 import imwrite
|
|
12 |
#def flip(im):
|
13 |
# return np.flipud(im)
|
14 |
|
|
|
|
|
|
|
15 |
def PPE(image):
|
16 |
# load model
|
17 |
#model = YOLO('keremberke/yolov8m-protective-equipment-detection')
|
@@ -60,9 +63,6 @@ def PPE(image):
|
|
60 |
#)
|
61 |
#demo.launch()
|
62 |
|
63 |
-
|
64 |
-
image=[gr.Image(label="Input Image", source="webcam")
|
65 |
-
|
66 |
demo = gr.Interface(
|
67 |
fn=PPE,
|
68 |
inputs="image",
|
|
|
12 |
#def flip(im):
|
13 |
# return np.flipud(im)
|
14 |
|
15 |
+
image=[gr.Image(label="Input Image", source="webcam")
|
16 |
+
|
17 |
+
|
18 |
def PPE(image):
|
19 |
# load model
|
20 |
#model = YOLO('keremberke/yolov8m-protective-equipment-detection')
|
|
|
63 |
#)
|
64 |
#demo.launch()
|
65 |
|
|
|
|
|
|
|
66 |
demo = gr.Interface(
|
67 |
fn=PPE,
|
68 |
inputs="image",
|