Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 =
|
| 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(
|