Spaces:
Running
Running
Adding colors to the titles
Browse files- text2image.py +5 -2
text2image.py
CHANGED
@@ -107,7 +107,9 @@ headers = {
|
|
107 |
|
108 |
def app():
|
109 |
|
110 |
-
st.title("From Text to Image")
|
|
|
|
|
111 |
st.markdown(
|
112 |
"""
|
113 |
|
@@ -201,7 +203,8 @@ def app():
|
|
201 |
break
|
202 |
except (UnidentifiedImageError) as e:
|
203 |
if i == N - 1:
|
204 |
-
st.text(f'Tried to show {N} different image URLS but none of them were reachabele.\
|
|
|
205 |
|
206 |
gc.collect()
|
207 |
|
|
|
107 |
|
108 |
def app():
|
109 |
|
110 |
+
#st.title("From Text to Image")
|
111 |
+
st.markdown("<h1 style='text-align: center; color: #CD212A;'>Image Retrieval</h1>", unsafe_allow_html=True)
|
112 |
+
st.markdown("<h2 style='text-align: center; color: #008C45;font-weight:bold;'>Text to Image</h2>", unsafe_allow_html=True)
|
113 |
st.markdown(
|
114 |
"""
|
115 |
|
|
|
203 |
break
|
204 |
except (UnidentifiedImageError) as e:
|
205 |
if i == N - 1:
|
206 |
+
st.text(f'Tried to show {N} different image URLS but none of them were reachabele.\
|
207 |
+
Maybe try a different query?')
|
208 |
|
209 |
gc.collect()
|
210 |
|