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,7 +113,8 @@ class VlmCausalLMBatch(FlashMistralBatch):
|
|||||||
full_text += chunk["content"]
|
full_text += chunk["content"]
|
||||||
elif chunk["type"] == "image":
|
elif chunk["type"] == "image":
|
||||||
image = chunk["content"]
|
image = chunk["content"]
|
||||||
image = processor.image_processor.fetch_images(image)
|
if image.startswith("https://") or image.startswith("http://"):
|
||||||
|
image = processor.image_processor.fetch_images(image)
|
||||||
image_input = processor.image_processor(image, return_tensors="pt")
|
image_input = processor.image_processor(image, return_tensors="pt")
|
||||||
height, width = image_input["image_sizes"][0]
|
height, width = image_input["image_sizes"][0]
|
||||||
num_features = get_number_of_features(height, width, config)
|
num_features = get_number_of_features(height, width, config)
|
||||||
|
Loading…
Reference in New Issue
Block a user