Deploy Streamlit app on Heroku

 Stept 1:

Save with "Procfile"

web: sh setup.sh && streamlit run app.py


Step 2:

requirements.txt

include all libraries


Step 3:

save with ext setup.sh


mkdir -p ~/.streamlit/


echo "\

[server]\n\

headless = true\n\

port = $PORT\n\

enableCORS = false\n\

\n\

" > ~/.streamlit/config.toml


Step 4:


Creat respositry on github and upload app files


Step 5:


go to Deploy tab and connect GitHub respositry


Step 6:


Deploy Branch


All the requirments will install 




Comments

  1. how to download the data folder as shown in the video

    ReplyDelete

Post a Comment