Drazcat-AI commited on
Commit
ce2f07d
·
verified ·
1 Parent(s): 40e72ea

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
  import numpy as np
9
  class EndpointHandler():
10
  def __init__(self, path=""):
11
- hf_hub_download(repo_id="Drazcat-AI/flejes", filename="flejes-13/runs/detect/train/weights/best.pt")
12
- self.model = YOLO(hf_hub_download(repo_id="Drazcat-AI/flejes", filename="flejes-13/runs/detect/train/weights/best.pt", local_files_only=True))
13
 
14
  def predict_objects(self, image_path, image_size_m):
15
  results = self.model(image_path, imgsz=[1280, 960])
 
8
  import numpy as np
9
  class EndpointHandler():
10
  def __init__(self, path=""):
11
+ hf_hub_download(repo_id="Drazcat-AI/flejes", filename="flejes-15/runs/detect/train/weights/best.pt")
12
+ self.model = YOLO(hf_hub_download(repo_id="Drazcat-AI/flejes", filename="flejes-15/runs/detect/train/weights/best.pt", local_files_only=True))
13
 
14
  def predict_objects(self, image_path, image_size_m):
15
  results = self.model(image_path, imgsz=[1280, 960])