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