AdrienB134 commited on
Commit
c785d73
1 Parent(s): b728f0b
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -74,7 +74,7 @@ def model_inference(
74
 
75
 
76
  prompt = id_processor.apply_chat_template(resulting_messages, add_generation_prompt=True)
77
- inputs = id_processor(text=prompt, images=[images], return_tensors="pt")
78
  inputs = {k: v.to("cuda") for k, v in inputs.items()}
79
 
80
  generation_args = {
 
74
 
75
 
76
  prompt = id_processor.apply_chat_template(resulting_messages, add_generation_prompt=True)
77
+ inputs = id_processor(text=prompt, images=images, return_tensors="pt")
78
  inputs = {k: v.to("cuda") for k, v in inputs.items()}
79
 
80
  generation_args = {