Spaces:
Sleeping
Sleeping
nishantguvvada
commited on
Commit
•
1d792f8
1
Parent(s):
31f7642
removed np.expand_dims
Browse files
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 =
|
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))
|