Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from ultralytics import YOLO
|
|
| 4 |
|
| 5 |
st.title("Gun/Arms Detection")
|
| 6 |
|
| 7 |
-
model = YOLO('
|
| 8 |
|
| 9 |
def detect_objects(image):
|
| 10 |
result = model(image, conf = 0.55)
|
|
|
|
| 4 |
|
| 5 |
st.title("Gun/Arms Detection")
|
| 6 |
|
| 7 |
+
model = YOLO('yolov8_background1k_best.pt')
|
| 8 |
|
| 9 |
def detect_objects(image):
|
| 10 |
result = model(image, conf = 0.55)
|