MANIKANDAN A
commited on
Commit
·
54a7692
1
Parent(s):
fc17b78
Update app.py
Browse files
app.py
CHANGED
|
@@ -158,16 +158,9 @@ def main():
|
|
| 158 |
img.save('tmp.jpg')
|
| 159 |
predict(col2)
|
| 160 |
|
| 161 |
-
|
| 162 |
-
col2.markdown('<div style="margin-top: 15px; padding: 10px; background-color: #e6f7ff; border-radius: 5px;">' + predict + '</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(predict)
|
| 169 |
|
| 170 |
-
|
| 171 |
st.markdown("<p style='font-size: 24px; font-weight: bold; margin-bottom: 20px;'>Edit Caption:</p>", unsafe_allow_html=True)
|
| 172 |
edited_caption = st.text_area("Edit the caption", value=generated_caption)
|
| 173 |
|
|
|
|
| 158 |
img.save('tmp.jpg')
|
| 159 |
predict(col2)
|
| 160 |
|
| 161 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 162 |
|
| 163 |
+
if "en" in selected_languages:
|
| 164 |
st.markdown("<p style='font-size: 24px; font-weight: bold; margin-bottom: 20px;'>Edit Caption:</p>", unsafe_allow_html=True)
|
| 165 |
edited_caption = st.text_area("Edit the caption", value=generated_caption)
|
| 166 |
|