Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -133,10 +133,10 @@ def main():
|
|
| 133 |
|
| 134 |
# Show download and reset buttons only if an image is generated
|
| 135 |
if st.session_state["image"]:
|
|
|
|
| 136 |
image_bytes = io.BytesIO()
|
| 137 |
st.session_state["image"].save(image_bytes, format='PNG')
|
| 138 |
|
| 139 |
-
# Download button
|
| 140 |
st.download_button(
|
| 141 |
label="Download Image",
|
| 142 |
data=image_bytes.getvalue(),
|
|
|
|
| 133 |
|
| 134 |
# Show download and reset buttons only if an image is generated
|
| 135 |
if st.session_state["image"]:
|
| 136 |
+
# Download button
|
| 137 |
image_bytes = io.BytesIO()
|
| 138 |
st.session_state["image"].save(image_bytes, format='PNG')
|
| 139 |
|
|
|
|
| 140 |
st.download_button(
|
| 141 |
label="Download Image",
|
| 142 |
data=image_bytes.getvalue(),
|