slight changes
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -26,7 +26,7 @@ class EndpointHandler:
|
|
26 |
if not encoded_images:
|
27 |
return {"captions": [], "error": "No images provided"}
|
28 |
|
29 |
-
texts = input_data.get("texts", ["
|
30 |
|
31 |
try:
|
32 |
raw_images = [
|
|
|
26 |
if not encoded_images:
|
27 |
return {"captions": [], "error": "No images provided"}
|
28 |
|
29 |
+
texts = input_data.get("texts", [""] * len(encoded_images))
|
30 |
|
31 |
try:
|
32 |
raw_images = [
|