Drazcat-AI commited on
Commit
e6b657c
·
1 Parent(s): 0c24424

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +2 -2
handler.py CHANGED
@@ -9,8 +9,8 @@ import torch
9
  import numpy as np
10
  class EndpointHandler():
11
  def __init__(self, path=""):
12
- hf_hub_download(repo_id="Drazcat-AI/galletas", filename="yolov8_galletas/runs/detect/train/weights/best.pt", local_files_only=True)
13
- self.model = YOLO("/home/Drazcat-AI/.cache/huggingface/hub/models--Drazcat-AI--galletas/snapshots/d960a6784ad838e30f01690ce813fb4dc7460bc0/yolov8_galletas/runs/detect/train/weights/best.pt")
14
 
15
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
16
 
 
9
  import numpy as np
10
  class EndpointHandler():
11
  def __init__(self, path=""):
12
+ hf_hub_download(repo_id="Drazcat-AI/galletas", filename="yolov8_galletas/runs/detect/train/weights/best.pt")
13
+ self.model = YOLO(hf_hub_download(repo_id="Drazcat-AI/galletas", filename="yolov8_galletas/runs/detect/train/weights/best.pt", local_files_only=True))
14
 
15
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
16