Spaces:
Sleeping
Sleeping
roychao19477
commited on
Commit
·
231b78e
1
Parent(s):
787e7f5
First commit
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ results = model.predict("input_frame.jpg")[0]
|
|
51 |
# Filter only face (class 0 in COCO = 'person'; need a face-detection specific model if you want more precision)
|
52 |
faces = [b for b in results.boxes if b.cls == 0]
|
53 |
|
54 |
-
gr.Interface(fn=dummy_fn, inputs=gr.Video(source="webcam"), outputs="video").launch()
|
55 |
|
56 |
|
57 |
ckpt = "ckpts/SEMamba_advanced.pth"
|
|
|
51 |
# Filter only face (class 0 in COCO = 'person'; need a face-detection specific model if you want more precision)
|
52 |
faces = [b for b in results.boxes if b.cls == 0]
|
53 |
|
54 |
+
gr.Interface(fn=dummy_fn, inputs=gr.Video(source="webcam"), outputs="video").launch()
|
55 |
|
56 |
|
57 |
ckpt = "ckpts/SEMamba_advanced.pth"
|