scfive commited on
Commit
ac56a47
·
verified ·
1 Parent(s): d65c673

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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 = "./models/best.pt"
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