Fiqa commited on
Commit
2ac23f6
·
verified ·
1 Parent(s): 8bb7fab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -92,7 +92,7 @@ def generate_caption_and_image(image, f, p, d):
92
  num_inference_steps=50,
93
  max_sequence_length=512,
94
  generator=torch.Generator("cpu").manual_seed(0)
95
- ).images
96
  return image
97
 
98
 
 
92
  num_inference_steps=50,
93
  max_sequence_length=512,
94
  generator=torch.Generator("cpu").manual_seed(0)
95
+ ).images[0]
96
  return image
97
 
98