View Code? Open in Web Editor
NEW
Repository for the Web App of CricAI, serves as sub repository in the base repository.
Home Page: https://cricai.herokuapp.com/
Python 5.21%
CSS 0.58%
HTML 3.42%
JavaScript 90.78%
web-app-cricai's Introduction
Repository acts as sub repository to the base, serves the purpose of deployment & webhooks
Steps for Hosting on Heroku(Any General Python/flask App)
- Login to your heroku account on workspace using
heroku login
& then providing credentials.
- Create the app using
heroku create <*NameOfApp*>
e.g heroku create cricai
- Set Buildpacks for the app using
heroku buildpacks:set heroku/python
- Generate a file using
pip freeze > requirements.txt
- Create a file named Procfile with contents as
web: gunicorn index:app
- Commit the steps using
git add .
& then, git commit -m "MESSAGE"
- Push for deploy using
git push heroku master
- Clone the project using
git clone https://github.com/jaykay12/CricAI.git
- Explore into the Web-App using
cd CricAI/Web-App
- Create a Virtual Env using
virtualenv venv
- Activate the Virtual Env using
cd venv/bin
& then, source activate
- Install all dependencies using
pip install -r requirements.txt
- Pickle Classifiers using
python3 modelPickler.py
- Run Model using
python3 index.py
- Open Browser & Hit
http://127.0.0.1:5000/
web-app-cricai's People
Contributors
Watchers