danielle2003 commited on
Commit
78eb10c
·
verified ·
1 Parent(s): 22278d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -583,6 +583,10 @@ if page == "Home":
583
  # Close the gallery and content div
584
 
585
  # Render the content
 
 
 
 
586
  st.markdown(content, unsafe_allow_html=True)
587
  else:
588
  default_image_path = "image.jpg"
 
583
  # Close the gallery and content div
584
 
585
  # Render the content
586
+ placeholder = st.empty() # Create a placeholder
587
+ placeholder.markdown(loading_html,unsafe_allow_html=True)
588
+ time.sleep(5) # Wait for 5 seconds
589
+ placeholder.empty()
590
  st.markdown(content, unsafe_allow_html=True)
591
  else:
592
  default_image_path = "image.jpg"