Can I run my Streamlit app from a directory that's not the root directory?

How do I configure my Streamlit app so that it runs in the Streamlit Cloud under a directory that’s not the root dir?

For example, I’d like my Streamlit app to run from the [My Git Repo Dir]/streamlit dir.

[My Git Repo Dir]

  • .streamlit
  • src
  • web
  • streamlit (run from Streamlit project files here)

Hey @Stephen_Pasco,

Your Python file doesn’t have to be located at the root of the GitHub repo to deploy with Community Cloud – you’ll just need to specify the path to the Python file when you deploy your app (see screenshot below).