kusumakar commited on
Commit
f35602f
1 Parent(s): f1bdee4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -45,7 +45,7 @@ def main():
45
  # check if file has been uploaded
46
  if uploaded_file is not None:
47
  # load the image
48
- image = np.array(Image.open(uploaded_file).resize((224, 224))).transpose(2, 0, 1)
49
 
50
  # context as prompt
51
  prompt = generate_captions(image)
 
45
  # check if file has been uploaded
46
  if uploaded_file is not None:
47
  # load the image
48
+ image = Image.open(uploaded_file).convert("RGB")
49
 
50
  # context as prompt
51
  prompt = generate_captions(image)