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