nishantguvvada commited on
Commit
1d792f8
1 Parent(s): 31f7642

removed np.expand_dims

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -83,7 +83,7 @@ def predict_caption(file):
83
  gru_state = tf.zeros((1, ATTENTION_DIM))
84
 
85
  resize = tf.image.resize(image, (IMG_HEIGHT, IMG_WIDTH))
86
- img = np.expand_dims(resize/255, 0)
87
 
88
  encoder = load_encoder_model()
89
  features = encoder(tf.expand_dims(img, axis=0))
 
83
  gru_state = tf.zeros((1, ATTENTION_DIM))
84
 
85
  resize = tf.image.resize(image, (IMG_HEIGHT, IMG_WIDTH))
86
+ img = resize/255
87
 
88
  encoder = load_encoder_model()
89
  features = encoder(tf.expand_dims(img, axis=0))