Spaces:
Build error
Build error
MANIKANDAN A commited on
Commit ·
ea1eb07
1
Parent(s): be8d0f3
Update app.py
Browse files157 unmodified lines158159160161162163164165166167168169157 unmodified linesimg.save('tmp.jpg')predict(col2)if generated_caption:col2.markdown('<div style="margin-top: 15px; padding: 10px; background-color: #e6f7ff; border-radius: 5px;">' + generated_caption + '</div>', unsafe_allow_html=True)else:col2.markdown('<div style="margin-top: 15px; padding: 10px; background-color: #e6f7ff; border-radius: 5px;">Caption generation failed.</div>', unsafe_allow_html=True)if generated_caption:st.markdown("<p style='font-size: 24px; font-weight: bold; margin-bottom: 20px;'>Generated Caption:</p>", unsafe_allow_html=True)st.write(generated_caption)157 unmodified lines158159160161162163164165166167168169157 unmodified linesimg.save('tmp.jpg')predict(col2)if predict:col2.markdown('<div style="margin-top: 15px; padding: 10px; background-color: #e6f7ff; border-radius: 5px;">' + generated_caption + '</div>', unsafe_allow_html=True)else:col2.markdown('<div style="margin-top: 15px; padding: 10px; background-color: #e6f7ff; border-radius: 5px;">Caption generation failed.</div>', unsafe_allow_html=True)if predict:st.markdown("<p style='font-size: 24px; font-weight: bold; margin-bottom: 20px;'>Generated Caption:</p>", unsafe_allow_html=True)st.write(generated_caption)
app.py+2-2