Monimoy commited on
Commit
4e8f700
·
verified ·
1 Parent(s): a34f5dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -146,7 +146,7 @@ def predict1(image_input, question):
146
  # Pass the image and encoded prompt to the model
147
  with torch.no_grad():
148
  # Get image embeddings
149
- image_embeddings = model.image_encoder(image)
150
  projected_image_embeddings = model.image_projection(image_embeddings)
151
 
152
  # Reshape image embeddings to (batch_size, 1, phi3_embed_dim)
 
146
  # Pass the image and encoded prompt to the model
147
  with torch.no_grad():
148
  # Get image embeddings
149
+ image_embeddings = image_encoder(image)
150
  projected_image_embeddings = model.image_projection(image_embeddings)
151
 
152
  # Reshape image embeddings to (batch_size, 1, phi3_embed_dim)