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

dependabot[bot] avatar jcharis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

streamlit_datascience_apps's Issues

Error Gensim summarizer

Hello !
I found an error in line 117.

		elif summary_options == 'gensim':
			st.text("Using Gensim Summarizer ..")
			summary_result = summarize(message)
		else:
			st.warning("Using Default Summarizer")
			st.text("Using Gensim Summarizer ..")
			summary_result = summarize(message)

I change it like this: summarize(message) instead summarize(rawtex)

Problem solved.

Best regards
MB

Any activity sends user back to login

Im using the task selectbox to add my app, but any activity in the 'task'menu means i get logged out of the app. could you please try integrate a session state in the app so that the use doesn't get redirected back to the login after every action?

AttributeError:

AttributeError: module 'streamlit' has no attribute 'beta_columns'
Traceback:
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 552, in _run_script
exec(code, module.dict)
File ".\app.py", line 67, in
main()
File ".\app.py", line 17, in main
col1,col2,col3 = st.beta_columns([3,2,1])

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.