Commit
·
0172050
1
Parent(s):
d846043
Update handler
Browse files- .gitignore +2 -0
- handler.py +3 -2
.gitignore
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
test_hf.py
|
| 2 |
+
venv/
|
handler.py
CHANGED
|
@@ -14,8 +14,9 @@ class EndpointHandler():
|
|
| 14 |
Return:
|
| 15 |
A :obj:`list` | `dict`: will be serialized and returned
|
| 16 |
"""
|
| 17 |
-
|
| 18 |
-
|
|
|
|
| 19 |
|
| 20 |
return [{
|
| 21 |
"image": image,
|
|
|
|
| 14 |
Return:
|
| 15 |
A :obj:`list` | `dict`: will be serialized and returned
|
| 16 |
"""
|
| 17 |
+
inputs = data.pop("inputs")
|
| 18 |
+
image = inputs.pop("image")
|
| 19 |
+
prompt = inputs.pop("prompt")
|
| 20 |
|
| 21 |
return [{
|
| 22 |
"image": image,
|