ProfessorLeVesseur commited on
Commit
ebdc4c0
·
verified ·
1 Parent(s): ee13260

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -136,8 +136,6 @@ def main():
136
  key="prompt_input"
137
  )
138
 
139
- # Create a placeholder for the spinner
140
- spinner_placeholder = st.empty()
141
 
142
  # Generate Image button
143
  generate_button_clicked = st.button("Generate Image")
@@ -149,6 +147,9 @@ def main():
149
  else:
150
  st.warning("Please enter a prompt.")
151
 
 
 
 
152
  # Show the image if it exists in the session state
153
  if st.session_state.get("image"):
154
  st.image(st.session_state["image"], caption="Generated Image")
 
136
  key="prompt_input"
137
  )
138
 
 
 
139
 
140
  # Generate Image button
141
  generate_button_clicked = st.button("Generate Image")
 
147
  else:
148
  st.warning("Please enter a prompt.")
149
 
150
+ # Create a placeholder for the spinner
151
+ spinner_placeholder = st.empty()
152
+
153
  # Show the image if it exists in the session state
154
  if st.session_state.get("image"):
155
  st.image(st.session_state["image"], caption="Generated Image")