Spaces:
Runtime error
Runtime error
Commit
·
154badc
1
Parent(s):
49ec72f
Update app.py
Browse files
app.py
CHANGED
@@ -48,11 +48,11 @@ def predict(image):
|
|
48 |
|
49 |
prediction = np.argmax(model.predict([test_feature, encoded]))
|
50 |
sampled_word = inv_dict[prediction]
|
51 |
-
|
52 |
-
caption = caption + ' ' + sampled_word
|
53 |
-
|
54 |
if sampled_word == 'endofseq':
|
55 |
break
|
|
|
|
|
|
|
56 |
|
57 |
text_inp.append(sampled_word)
|
58 |
|
|
|
48 |
|
49 |
prediction = np.argmax(model.predict([test_feature, encoded]))
|
50 |
sampled_word = inv_dict[prediction]
|
|
|
|
|
|
|
51 |
if sampled_word == 'endofseq':
|
52 |
break
|
53 |
+
caption = caption + ' ' + sampled_word
|
54 |
+
|
55 |
+
|
56 |
|
57 |
text_inp.append(sampled_word)
|
58 |
|