Updates Transformers Inference code in README.md
Browse filesThere’s a minor typo in the transformers inference code where image_paths is incorrectly set to a list containing the string "url" rather than the url variable itself which leads to a Runtime Error.
README.md
CHANGED
@@ -193,7 +193,7 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
193 |
)
|
194 |
processor = AutoProcessor.from_pretrained(model_path, trust_remote_code=True)
|
195 |
|
196 |
-
image_paths = [
|
197 |
images = [Image.open(path) for path in image_paths]
|
198 |
messages = [
|
199 |
{
|
|
|
193 |
)
|
194 |
processor = AutoProcessor.from_pretrained(model_path, trust_remote_code=True)
|
195 |
|
196 |
+
image_paths = [url]
|
197 |
images = [Image.open(path) for path in image_paths]
|
198 |
messages = [
|
199 |
{
|