Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

st_pages deployment on streamlit cloud not working #77

Closed
gloriamacia opened this issue Nov 7, 2023 · 1 comment
Closed

st_pages deployment on streamlit cloud not working #77

gloriamacia opened this issue Nov 7, 2023 · 1 comment

Comments

@gloriamacia
Copy link

gloriamacia commented Nov 7, 2023

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.py was 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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant