MANIKANDAN A
commited on
Commit
·
ea1eb07
1
Parent(s):
be8d0f3
Update app.py
Browse files
app.py
CHANGED
@@ -158,12 +158,12 @@ def main():
|
|
158 |
img.save('tmp.jpg')
|
159 |
predict(col2)
|
160 |
|
161 |
-
if
|
162 |
col2.markdown('<div style="margin-top: 15px; padding: 10px; background-color: #e6f7ff; border-radius: 5px;">' + generated_caption + '</div>', unsafe_allow_html=True)
|
163 |
else:
|
164 |
col2.markdown('<div style="margin-top: 15px; padding: 10px; background-color: #e6f7ff; border-radius: 5px;">Caption generation failed.</div>', unsafe_allow_html=True)
|
165 |
|
166 |
-
if
|
167 |
st.markdown("<p style='font-size: 24px; font-weight: bold; margin-bottom: 20px;'>Generated Caption:</p>", unsafe_allow_html=True)
|
168 |
st.write(generated_caption)
|
169 |
|
|
|
158 |
img.save('tmp.jpg')
|
159 |
predict(col2)
|
160 |
|
161 |
+
if predict:
|
162 |
col2.markdown('<div style="margin-top: 15px; padding: 10px; background-color: #e6f7ff; border-radius: 5px;">' + generated_caption + '</div>', unsafe_allow_html=True)
|
163 |
else:
|
164 |
col2.markdown('<div style="margin-top: 15px; padding: 10px; background-color: #e6f7ff; border-radius: 5px;">Caption generation failed.</div>', unsafe_allow_html=True)
|
165 |
|
166 |
+
if predict:
|
167 |
st.markdown("<p style='font-size: 24px; font-weight: bold; margin-bottom: 20px;'>Generated Caption:</p>", unsafe_allow_html=True)
|
168 |
st.write(generated_caption)
|
169 |
|