Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import os
|
|
5 |
from ultralytics import YOLO
|
6 |
|
7 |
|
8 |
-
model = YOLO('
|
9 |
path = [['3891186464_00d76e10a2_z.jpg'], ['images (1).jpeg']]
|
10 |
video_path = [['sheep.mp4']]
|
11 |
|
@@ -72,7 +72,7 @@ interface_video = gr.Interface(
|
|
72 |
outputs=outputs,
|
73 |
title="Cattle detector using YOLOV8 NANO",
|
74 |
examples=video_path,
|
75 |
-
cache_examples=
|
76 |
)
|
77 |
|
78 |
gr.TabbedInterface(
|
|
|
5 |
from ultralytics import YOLO
|
6 |
|
7 |
|
8 |
+
model = YOLO('yolov8n-seg.pt')
|
9 |
path = [['3891186464_00d76e10a2_z.jpg'], ['images (1).jpeg']]
|
10 |
video_path = [['sheep.mp4']]
|
11 |
|
|
|
72 |
outputs=outputs,
|
73 |
title="Cattle detector using YOLOV8 NANO",
|
74 |
examples=video_path,
|
75 |
+
cache_examples=False,
|
76 |
)
|
77 |
|
78 |
gr.TabbedInterface(
|