Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ def process_image(image, text_input=None):
|
|
| 34 |
# Resize the image
|
| 35 |
image = image.resize((new_width, new_height))
|
| 36 |
|
| 37 |
-
inputs = processor(text=prompt, images=image, return_tensors="pt")
|
| 38 |
|
| 39 |
generated_ids = model.generate(
|
| 40 |
input_ids=inputs["input_ids"],
|
|
|
|
| 34 |
# Resize the image
|
| 35 |
image = image.resize((new_width, new_height))
|
| 36 |
|
| 37 |
+
inputs = processor(text=prompt, images=image, return_tensors="pt")
|
| 38 |
|
| 39 |
generated_ids = model.generate(
|
| 40 |
input_ids=inputs["input_ids"],
|