breadlicker45 commited on
Commit
dfd6583
·
verified ·
1 Parent(s): eb23a74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -44,7 +44,7 @@ def process_image_and_text(image_pil, text_input, num_beams, temperature, seed):
44
  image = load_image(image_pil)
45
 
46
  # Add <image> token to the beginning of the text prompt
47
- text_input = "<image> " + text_input
48
 
49
  # Use the provided text input
50
  model_inputs = processor(text=text_input, images=image, return_tensors="pt").to(
 
44
  image = load_image(image_pil)
45
 
46
  # Add <image> token to the beginning of the text prompt
47
+ text_input = text_input
48
 
49
  # Use the provided text input
50
  model_inputs = processor(text=text_input, images=image, return_tensors="pt").to(