Git Product home page Git Product logo

streamlit_datascience_apps's Introduction

Streamlit_DataScience_Apps

Streamlit Data Science and ML Apps in Python

How to Deploy Streamlit Apps to Heroku

1. Create An Account Heroku by signing up.

2. Install Heroku CLI

3. Create Your Github Repository for your app

4. Build your app

5. Login to Heroku From the CLI

heroku Login

6. Create Your 3 Required Files(setup.sh,Procfile,requirements.txt)

  • Place the code below in their respective files
Code for setup.sh
mkdir -p ~/.streamlit/

echo "\
[general]\n\
email = \"[email protected]\"\n\
" > ~/.streamlit/credentials.toml

echo "\
[server]\n\
headless = true\n\
enableCORS=false\n\
port = $PORT\n\
" > ~/.streamlit/config.toml
Code for setup.sh (Alternate with no credentials.toml)
mkdir -p ~/.streamlit/

echo "\
[server]\n\
headless = true\n\
port = $PORT\n\
enableCORS = false\n\
\n\
" > ~/.streamlit/config.toml
Code For Procfile
web: sh setup.sh && streamlit run your_app.py

7. Create App with CLI

heroku create name-of-your-app

8. Commit and Push Your Code to Github

git add your app 
git commit -m "your comment description"
git push

9. Push To Heroku to Deploy

git push heroku master

Credits:

gabe_maldonado

Streamlit team

Thanks For Your Time

####By

  • Jesse E.Agbe(JCharis)
  • Jesus Saves@JCharisTech

streamlit_datascience_apps's People

Contributors

jcharis avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.