Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -6,7 +6,7 @@ import requests
|
|
6 |
class EndpointHandler():
|
7 |
def __init__(self, path=""):
|
8 |
print("init")
|
9 |
-
|
10 |
|
11 |
def __call__(self, data: Dict[str, Any]):
|
12 |
totalarr = []
|
|
|
6 |
class EndpointHandler():
|
7 |
def __init__(self, path=""):
|
8 |
print("init")
|
9 |
+
self.pipeline = pipeline("image-to-text", model=path)
|
10 |
|
11 |
def __call__(self, data: Dict[str, Any]):
|
12 |
totalarr = []
|