Upload handler.py
Browse filesgarbage commit for debugging
- handler.py +2 -0
handler.py
CHANGED
|
@@ -23,6 +23,8 @@ class EndpointHandler():
|
|
| 23 |
inputs = data.pop("inputs", data)
|
| 24 |
parameters = data.pop("parameters", {"mode": "image"})
|
| 25 |
|
|
|
|
|
|
|
| 26 |
# Get image URL and prompt from the inputs
|
| 27 |
image_url = inputs.get("image_url")
|
| 28 |
prompt = inputs.get("prompt", "") # Optional prompt for conditional captioning
|
|
|
|
| 23 |
inputs = data.pop("inputs", data)
|
| 24 |
parameters = data.pop("parameters", {"mode": "image"})
|
| 25 |
|
| 26 |
+
return inputs
|
| 27 |
+
|
| 28 |
# Get image URL and prompt from the inputs
|
| 29 |
image_url = inputs.get("image_url")
|
| 30 |
prompt = inputs.get("prompt", "") # Optional prompt for conditional captioning
|