Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -36,6 +36,14 @@ st.markdown("""
|
|
36 |
.content {
|
37 |
margin-bottom: 70px;
|
38 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
</style>
|
40 |
""", unsafe_allow_html=True)
|
41 |
|
@@ -85,14 +93,18 @@ if uploaded_file is not None:
|
|
85 |
with col4:
|
86 |
st.image(sketch, caption='Sketch', use_column_width=True)
|
87 |
|
88 |
-
#
|
89 |
-
st.markdown("
|
|
|
|
|
|
|
90 |
btn = st.download_button(
|
91 |
label="Download Sketch",
|
92 |
data=Image.fromarray(sketch).tobytes(),
|
93 |
file_name="sketch.png",
|
94 |
mime="image/png"
|
95 |
)
|
|
|
96 |
else:
|
97 |
st.info("Please upload an image to convert.")
|
98 |
|
|
|
36 |
.content {
|
37 |
margin-bottom: 70px;
|
38 |
}
|
39 |
+
.spacing {
|
40 |
+
margin: 10px 0;
|
41 |
+
}
|
42 |
+
.centered-button {
|
43 |
+
display: flex;
|
44 |
+
justify-content: center;
|
45 |
+
align-items: center;
|
46 |
+
}
|
47 |
</style>
|
48 |
""", unsafe_allow_html=True)
|
49 |
|
|
|
93 |
with col4:
|
94 |
st.image(sketch, caption='Sketch', use_column_width=True)
|
95 |
|
96 |
+
# Add some space before the button
|
97 |
+
st.markdown('<div class="spacing"></div>', unsafe_allow_html=True)
|
98 |
+
|
99 |
+
# Provide a download link for the sketch image in the center
|
100 |
+
st.markdown('<div class="centered-button">', unsafe_allow_html=True)
|
101 |
btn = st.download_button(
|
102 |
label="Download Sketch",
|
103 |
data=Image.fromarray(sketch).tobytes(),
|
104 |
file_name="sketch.png",
|
105 |
mime="image/png"
|
106 |
)
|
107 |
+
st.markdown('</div>', unsafe_allow_html=True)
|
108 |
else:
|
109 |
st.info("Please upload an image to convert.")
|
110 |
|