So i’m having a streamlit app that has switch_page components, while i run on local, the switch_page
working just fine. But when i deploy the app into streamlit community cloud, the switch_page
components couldn’t find the page.
here are the app im working on :
and here’s the github repos
error message on streamlit community cloud logs :
if button_pressed:
st.switch_page("pages/chatbot.py")
StreamlitAPIException: Could not find page: pages\chatbot.py
. Must be the file path relative to the main script, from the directory: chatbot-capstone
. Only the main app file and files in the pages/
directory are supported.
things i have done :
- switch the slash into backslash
streamlit version:
latest
python version:
3.10
Looking forward for the answer, and Thanks in Advance.