blackary / st_pages

An experimental version of Streamlit Multi-Page Apps
MIT License
456 stars 76 forks source link

st_pages deployment on streamlit cloud not working #77

Closed gloriamacia closed 10 months ago

gloriamacia commented 10 months ago

I have been working on my app (two pages) here https://github.com/gloriamacia/pixarstar/blob/main/genai/.streamlit/pages.toml

This was my pages.toml

[[pages]]
path = "streamlit_app.py"
name = "Home"
icon = "🎨"

[[pages]]
path = "pages/stability_ai_app.py"
name = "Draw"
icon = "🖼️"

When I deployed, I specified as my entry point of the app genai/streamlit_app.py. I am getting this error: https://pixarstar.streamlit.app/stability_ai_app

image

I tried changing pages.toml to

[[pages]]
path = "genai/streamlit_app.py"
name = "Home"
icon = "🎨"

[[pages]]
path = "genai/pages/stability_ai_app.py"
name = "Draw"
icon = "🖼️"

It still does not work. What I do not understand is that on the local development running the first version with poetry run python -m streamlit run streamlit_app.pywas working just fine.

What am I missing here? Maybe the deployment instructions should be improved because it does not look obvious to me. Thanks a lot in advance.

gloriamacia commented 10 months ago

I could not really figure it out and I decided not to import the config. This worked just fine after changing the paths. I believe part of the reason may be that setting up a symbolic link may be necessary depending on where the .streamlit directory is. In any case, great library - a couple thing should be clarified a bit more.