Spaces:
Sleeping
Sleeping
Commit
·
8887ce7
1
Parent(s):
7291c1b
Update app.py
Browse files
app.py
CHANGED
@@ -47,6 +47,12 @@ def load_image_model():
|
|
47 |
# encoder=tf.keras.models.load_model('./encoder_model.h5')
|
48 |
# return encoder
|
49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
|
51 |
# **** DECODER ****
|
52 |
|
@@ -90,11 +96,6 @@ decoder_pred_model = tf.keras.Model(
|
|
90 |
)
|
91 |
# **** DECODER ****
|
92 |
|
93 |
-
# **** ENCODER ****
|
94 |
-
image_input = Input(shape=(IMG_HEIGHT, IMG_WIDTH, IMG_CHANNELS))
|
95 |
-
encoder_output = Dense(ATTENTION_DIM, activation="relu")(x)
|
96 |
-
encoder = tf.keras.Model(inputs=image_input, outputs=encoder_output)
|
97 |
-
# **** ENCODER ****
|
98 |
|
99 |
st.title(":blue[Nishant Guvvada's] :red[AI Journey] Image Caption Generation")
|
100 |
image = Image.open('./title.jpg')
|
|
|
47 |
# encoder=tf.keras.models.load_model('./encoder_model.h5')
|
48 |
# return encoder
|
49 |
|
50 |
+
# **** ENCODER ****
|
51 |
+
image_input = Input(shape=(IMG_HEIGHT, IMG_WIDTH, IMG_CHANNELS))
|
52 |
+
encoder_output = Dense(ATTENTION_DIM, activation="relu")(x)
|
53 |
+
encoder = tf.keras.Model(inputs=image_input, outputs=encoder_output)
|
54 |
+
# **** ENCODER ****
|
55 |
+
|
56 |
|
57 |
# **** DECODER ****
|
58 |
|
|
|
96 |
)
|
97 |
# **** DECODER ****
|
98 |
|
|
|
|
|
|
|
|
|
|
|
99 |
|
100 |
st.title(":blue[Nishant Guvvada's] :red[AI Journey] Image Caption Generation")
|
101 |
image = Image.open('./title.jpg')
|