ProfessorLeVesseur commited on
Commit
7498bae
·
verified ·
1 Parent(s): 516628c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(),