Please take a moment to search the forum and documentation before posting a new topic.
If you’re creating a debugging post, please include the following info:
Are you running your app locally or is it deployed?
If your app is deployed:
a. Is it deployed on Community Cloud or another hosting platform?
b. Share the link to the public deployed app.
Share the link to your app’s public GitHub repository (including a requirements file).
Share the full text of the error message (not a screenshot).
Hey there, thanks for sharing your question and the code snippet! For effective debugging and community support, it’s best to include the following info in your post:
Are you running your app locally or is it deployed?
If deployed:
a. Is it on Streamlit Community Cloud or another platform?
b. Share the link to the public deployed app.
Share the link to your app’s public GitHub repository (including a requirements file).
Share the full text of the error message (not a screenshot).
Share the Streamlit and Python versions you’re using.
Also, your code combines Flask and Streamlit, but Streamlit apps are designed to run independently and do not natively support Flask routes. The st.space(size="medium") command is not present in the official Streamlit API, so it will cause an error. For layout spacing, use st.write("") or st.markdown("<br>", unsafe_allow_html=True) instead. For more on best practices for posting and debugging, see the Streamlit forum guidelines.