Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def generate_input(input_type, image=None, text=None):
|
|
32 |
inputs = processor(images=image, return_tensors="pt")
|
33 |
out = image_model.generate(**inputs)
|
34 |
image_caption = processor.decode(out[0], skip_special_tokens=True)
|
35 |
-
combined_input += image_caption + " " + text # Combine image caption and text
|
36 |
|
37 |
# If no input, fallback
|
38 |
if not combined_input:
|
|
|
32 |
inputs = processor(images=image, return_tensors="pt")
|
33 |
out = image_model.generate(**inputs)
|
34 |
image_caption = processor.decode(out[0], skip_special_tokens=True)
|
35 |
+
combined_input += image_caption + " and " + text # Combine image caption and text
|
36 |
|
37 |
# If no input, fallback
|
38 |
if not combined_input:
|