Update handler.py
Browse files- handler.py +4 -0
handler.py
CHANGED
|
@@ -2,6 +2,10 @@ from huggingface_hub import hf_hub_download
|
|
| 2 |
from typing import Dict, List, Any
|
| 3 |
from ultralytics import YOLO
|
| 4 |
import json
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
class EndpointHandler():
|
| 7 |
def __init__(self, path=""):
|
|
|
|
| 2 |
from typing import Dict, List, Any
|
| 3 |
from ultralytics import YOLO
|
| 4 |
import json
|
| 5 |
+
import urllib.request
|
| 6 |
+
import cv2
|
| 7 |
+
from io import BytesIO
|
| 8 |
+
import numpy as np
|
| 9 |
|
| 10 |
class EndpointHandler():
|
| 11 |
def __init__(self, path=""):
|