Spaces:
Build error
Build error
Ilia Tambovtsev commited on
Commit ·
a43286e
1
Parent(s): bccb9fe
style: add image typing
Browse files- src/chains/chains.py +1 -1
src/chains/chains.py
CHANGED
|
@@ -180,7 +180,7 @@ class ImageEncodeChain(Chain):
|
|
| 180 |
Returns:
|
| 181 |
Dictionary with base64 encoded image string
|
| 182 |
"""
|
| 183 |
-
image: Image = inputs["image"]
|
| 184 |
encoded = image2base64(image)
|
| 185 |
return dict(image_encoded=encoded)
|
| 186 |
|
|
|
|
| 180 |
Returns:
|
| 181 |
Dictionary with base64 encoded image string
|
| 182 |
"""
|
| 183 |
+
image: Image.Image = inputs["image"]
|
| 184 |
encoded = image2base64(image)
|
| 185 |
return dict(image_encoded=encoded)
|
| 186 |
|