Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def generate_caption_vitCoAtt(image):
|
|
24 |
return caption
|
25 |
|
26 |
def generate_caption_cnnrnn(image):
|
27 |
-
with open('
|
28 |
Xnet_features = pickle.load(f)
|
29 |
image = Xnet_features[image]
|
30 |
caption = cnnrnn.get_result(image)
|
|
|
24 |
return caption
|
25 |
|
26 |
def generate_caption_cnnrnn(image):
|
27 |
+
with open('Image_features_ecoder_decoder.pickle', 'rb') as f:
|
28 |
Xnet_features = pickle.load(f)
|
29 |
image = Xnet_features[image]
|
30 |
caption = cnnrnn.get_result(image)
|