mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 12:24:53 +00:00
Fixing integration tests ? (Failures locally).
This commit is contained in:
parent
7852a85b57
commit
ccbfc05db5
@ -113,6 +113,7 @@ class VlmCausalLMBatch(FlashMistralBatch):
|
||||
full_text += chunk["content"]
|
||||
elif chunk["type"] == "image":
|
||||
image = chunk["content"]
|
||||
if image.startswith("https://") or image.startswith("http://"):
|
||||
image = processor.image_processor.fetch_images(image)
|
||||
image_input = processor.image_processor(image, return_tensors="pt")
|
||||
height, width = image_input["image_sizes"][0]
|
||||
|
Loading…
Reference in New Issue
Block a user