mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-10 20:04: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()
|
||||
try:
|
||||
image = Image.open(BytesIO(response.content))
|
||||
image.verify()
|
||||
# image.verify()
|
||||
except Exception:
|
||||
raise ValueError(f"Could not load image from url {image_url_or_urls}")
|
||||
return image
|
||||
|
Loading…
Reference in New Issue
Block a user