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