PIL Image.Image type fix

This commit is contained in:
awsr
2026-04-06 01:06:19 -07:00
parent a07e9cc7e1
commit c003b0eb48
15 changed files with 23 additions and 23 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ def check_tmp_file(gradio, filename):
return ok
def pil_to_temp_file(self, img: Image, dir: str, format="png") -> str: # pylint: disable=redefined-builtin,unused-argument
def pil_to_temp_file(self, img: Image.Image, dir: str, format="png") -> str: # pylint: disable=redefined-builtin,unused-argument
"""
# original gradio implementation
bytes_data = gr.processing_utils.encode_pil_to_bytes(img, format)