tobiashaab commited on
Commit
9958974
·
verified ·
1 Parent(s): 35bd918

Updates Transformers Inference code in README.md

Browse files

There’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.

Files changed (1) hide show
  1. README.md +1 -1
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 = ["url"]
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
  {