Update app.py
Browse files
app.py
CHANGED
@@ -168,11 +168,11 @@ def predict(cap_col, img, target_language):
|
|
168 |
|
169 |
cap_col.markdown('<div class="caption-container">', unsafe_allow_html=True)
|
170 |
for c in captions:
|
171 |
-
cap_col.markdown(f'<div class="cap-line" style="color:
|
172 |
cap_col.markdown('</div>', unsafe_allow_html=True)
|
173 |
|
174 |
def generate_caption_section():
|
175 |
-
st.markdown('<h1 style="text-align:center; font-family:Comic sans; width:fit-content; font-size:2em; color:
|
176 |
col1, col2 = st.columns(2)
|
177 |
|
178 |
# Image URL input
|
|
|
168 |
|
169 |
cap_col.markdown('<div class="caption-container">', unsafe_allow_html=True)
|
170 |
for c in captions:
|
171 |
+
cap_col.markdown(f'<div class="cap-line" style="color: white; background-color: light grey; padding: 5px; margin-bottom: 5px; font-family: \'Palatino Linotype\', \'Book Antiqua\', Palatino, serif;">{c}</div>', unsafe_allow_html=True)
|
172 |
cap_col.markdown('</div>', unsafe_allow_html=True)
|
173 |
|
174 |
def generate_caption_section():
|
175 |
+
st.markdown('<h1 style="text-align:center; font-family:Comic sans; width:fit-content; font-size:2em; color:white; text-shadow: 1px 2px 3px #000000;">IMAGE CAPTION GENERATOR</h1>', unsafe_allow_html=True)
|
176 |
col1, col2 = st.columns(2)
|
177 |
|
178 |
# Image URL input
|