I created an multipages app. I try to deploy it on streamlit cloud. I follow the tutorial and i have name my main file âHome.pyâ (i tried also with âHello.pyâ). I created a subfolder named âpagesâ and each page of my app start the name with a number and underscore (1_Analyse.py , 2_Glossaire.py). BUTâŠ
When i deploy, i can see just the main page âHome.pyâ ! Why and how correct it please ?
in pj, a picture of my folder and files organisation on Vs Code.
I took a look at the documentation and I noticed that to run multipage apps you should run:
streamlit run [entrypoint file]
I think it wasnât that way last time I looked at it so maybe it is new? In any case, there is no way to specify an entrypoint in streamlit cloud. So how is it supposed to know what the entrypoint is?
Hi Goyo,
Thank you for your answer. I already test with this command line âstreamlit run Home.pyâ name of my main file, the entrypoint file. I read in documentation that we can write Hello or Home.py and after create a file âpagesâ. And then, Streamlit understand that âHelloâ or âHome.pyâ file is the entrypoint file.
You mentioned that it shows âHomeâ in the deployed app, but it should show âHelloâ instead, since thatâs the name of the python file. Are you sure youâre deploying from the right repo?
See my fork and deployment. Note that there is a pages directory at the same level than the entry point Hello.py, but they are not in the root of the repository.