mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 04:14:52 +00:00
Update idefics_image_processing.py
This commit is contained in:
parent
85acb11ba0
commit
a31359d052
@ -198,7 +198,7 @@ class IdeficsImageProcessor(BaseImageProcessor):
|
|||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
try:
|
try:
|
||||||
image = Image.open(BytesIO(response.content))
|
image = Image.open(BytesIO(response.content))
|
||||||
image.verify()
|
# image.verify()
|
||||||
except Exception:
|
except Exception:
|
||||||
raise ValueError(f"Could not load image from url {image_url_or_urls}")
|
raise ValueError(f"Could not load image from url {image_url_or_urls}")
|
||||||
return image
|
return image
|
||||||
|
Loading…
Reference in New Issue
Block a user