Upload handler.py
Browse files- handler.py +1 -6
handler.py
CHANGED
|
@@ -7,12 +7,7 @@ from ultralytics import YOLO
|
|
| 7 |
|
| 8 |
|
| 9 |
class EndpointHandler:
|
| 10 |
-
def __init__(self):
|
| 11 |
-
# self.CLIENT = InferenceHTTPClient(
|
| 12 |
-
# api_url="https://detect.roboflow.com",
|
| 13 |
-
# api_key=key
|
| 14 |
-
# )
|
| 15 |
-
# print("checkpoint 1")
|
| 16 |
pass
|
| 17 |
|
| 18 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
|
|
| 7 |
|
| 8 |
|
| 9 |
class EndpointHandler:
|
| 10 |
+
def __init__(self, key): # pass api key to model
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
pass
|
| 12 |
|
| 13 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|