Tesneem commited on
Commit
e958180
1 Parent(s): 1c9ceaf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: