oscarfu0501
commited on
Commit
•
90c8d6d
1
Parent(s):
472f9b4
Update handler.py
Browse files- handler.py +7 -1
handler.py
CHANGED
@@ -10,7 +10,13 @@ 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
16 |
inputs = data.get("inputs")
|
|
|
10 |
def __init__(self, path='.'): # pass api key to model
|
11 |
current_directory = os.getcwd()
|
12 |
print("Current working directory:", current_directory)
|
13 |
+
files_and_directories = os.listdir()
|
14 |
+
|
15 |
+
# Print each file and directory
|
16 |
+
for item in files_and_directories:
|
17 |
+
print(item)
|
18 |
+
|
19 |
+
self.model = YOLO("./best.pt")
|
20 |
|
21 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
22 |
inputs = data.get("inputs")
|