mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
FIX: No specific type for 'image' arg
Roll back
This commit is contained in:
parent
702edb288e
commit
8ec8901921
@ -99,7 +99,7 @@ def decode_base64_to_image(encoding):
|
||||
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:
|
||||
if isinstance(image, str):
|
||||
return image
|
||||
|
Loading…
Reference in New Issue
Block a user