Update app.py
Browse files
app.py
CHANGED
@@ -2,10 +2,9 @@ import streamlit as st
|
|
2 |
from ultralytics import YOLO
|
3 |
from PIL import Image
|
4 |
import numpy as np
|
5 |
-
import os
|
6 |
|
7 |
-
# Load the model
|
8 |
-
model_path = "
|
9 |
model = YOLO(model_path)
|
10 |
|
11 |
# Streamlit app
|
|
|
2 |
from ultralytics import YOLO
|
3 |
from PIL import Image
|
4 |
import numpy as np
|
|
|
5 |
|
6 |
+
# Load the YOLO model directly from the root directory
|
7 |
+
model_path = "best.pt" # Ensure this matches the exact name of your model file
|
8 |
model = YOLO(model_path)
|
9 |
|
10 |
# Streamlit app
|