Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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"
|