Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import numpy as np
|
|
4 |
from ultralytics import YOLO
|
5 |
|
6 |
# Load the YOLOv8 model
|
7 |
-
model = YOLO("
|
8 |
|
9 |
# Define the inference function
|
10 |
def predict(image):
|
|
|
4 |
from ultralytics import YOLO
|
5 |
|
6 |
# Load the YOLOv8 model
|
7 |
+
model = YOLO("best.pt") # Ensure this file is in the same directory as app.py on Hugging Face
|
8 |
|
9 |
# Define the inference function
|
10 |
def predict(image):
|