Drazcat-AI commited on
Commit
5fca884
·
verified ·
1 Parent(s): dc18c2d

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +2 -2
handler.py CHANGED
@@ -8,8 +8,8 @@ from io import BytesIO
8
 
9
  class EndpointHandler():
10
  def __init__(self, path=""):
11
- hf_hub_download(repo_id="Drazcat-AI/flejes", filename="yolov8_flejes/runs/detect/train/weights/best.pt")
12
- self.model = YOLO(hf_hub_download(repo_id="Drazcat-AI/flejes", filename="yolov8_flejes/runs/detect/train/weights/best.pt", local_files_only=True))
13
 
14
  def predict_objects(self, image_path):
15
  #results = self.model(image_path, imgsz=1280)
 
8
 
9
  class EndpointHandler():
10
  def __init__(self, path=""):
11
+ hf_hub_download(repo_id="Drazcat-AI/flejes", filename="yolov8_flejes/runs/detect/train/weights/last.pt")
12
+ self.model = YOLO(hf_hub_download(repo_id="Drazcat-AI/flejes", filename="yolov8_flejes/runs/detect/train/weights/last.pt", local_files_only=True))
13
 
14
  def predict_objects(self, image_path):
15
  #results = self.model(image_path, imgsz=1280)