Commit 8ec89019 authored by Art Gourieff's avatar Art Gourieff

FIX: No specific type for 'image' arg

Roll back
parent 702edb28
...@@ -99,7 +99,7 @@ def decode_base64_to_image(encoding): ...@@ -99,7 +99,7 @@ def decode_base64_to_image(encoding):
raise HTTPException(status_code=500, detail="Invalid encoded image") from e raise HTTPException(status_code=500, detail="Invalid encoded image") from e
def encode_pil_to_base64(image: Image.Image): def encode_pil_to_base64(image):
with io.BytesIO() as output_bytes: with io.BytesIO() as output_bytes:
if isinstance(image, str): if isinstance(image, str):
return image return image
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment