Skip to content

Commit

Permalink
update images input name in nanollava notebook (#2529)
Browse files Browse the repository at this point in the history
  • Loading branch information
eaidova authored Nov 18, 2024
1 parent 9868edb commit ac90d38
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@
"print(f\"Question:\\n{prompt}\")\n",
"print(\"Answer:\")\n",
"\n",
"output_ids = ov_model.generate(input_ids, attention_mask=attention_mask, images=image_tensor, max_new_tokens=128, use_cache=True, streamer=streamer)"
"output_ids = ov_model.generate(input_ids, attention_mask=attention_mask, pixel_values=image_tensor, max_new_tokens=128, use_cache=True, streamer=streamer)"
]
},
{
Expand Down Expand Up @@ -774,7 +774,7 @@
" generation_kwargs = dict(\n",
" input_ids=input_ids,\n",
" attention_mask=attention_mask,\n",
" images=image_tensor,\n",
" pixel_values=image_tensor,\n",
" streamer=streamer,\n",
" max_new_tokens=128,\n",
" stopping_criteria=[stopping_criteria],\n",
Expand Down

0 comments on commit ac90d38

Please sign in to comment.