oscarfu0501 commited on
Commit
53c4179
1 Parent(s): 70698c4

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +3 -1
handler.py CHANGED
@@ -4,10 +4,12 @@ import numpy as np
4
  import cv2
5
  import base64
6
  from ultralytics import YOLO
7
-
8
 
9
  class EndpointHandler:
10
  def __init__(self, path='.'): # pass api key to model
 
 
11
  self.model = YOLO("../best.pt")
12
 
13
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
 
4
  import cv2
5
  import base64
6
  from ultralytics import YOLO
7
+ import os
8
 
9
  class EndpointHandler:
10
  def __init__(self, path='.'): # pass api key to model
11
+ current_directory = os.getcwd()
12
+ print("Current working directory:", current_directory)
13
  self.model = YOLO("../best.pt")
14
 
15
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]: