A Web Application to predict Reddit Flairs
Heroku - Reddit Flair Predictor
This is a Flask Web Application set-up for hosting on Heroku servers.
- [App.py] - This is the main app outlet application
- [requirements.txt] - Contains Dependencies
- [Jupyter Notebooks] - Folder which contains all the scripts
- [Helper.py] - This is the application which is called to predict flair.
- [Procfile] - Needed to setup Heroku.
- [Templates] - Contains all static pages.
- [Runtime] - To point Heroku with the required python version
- [nltk.txt] - Used to download Nltk resources
- [Trained Data] - Contains trained data and models
- Open the
Terminal. - Download the Repo.
- Ensure that
Python3andpipis installed on the system. - Create a
virtualenvby executing the following command:virtualenv -p python3 env. - Activate the
envvirtual environment by executing the follwing command:source env/bin/activate. - Enter the cloned repository directory and execute
pip install -r requirements.txt. - Enter
pythonshell andimport nltk. Executenltk.download()and exit the shell. - Add a .env and add required environment variables.
- Now, execute the following command:
python app.pyand it will point to thelocalhostwith the port. - Hit the
IP Addresson a web browser and use the application.
Went through various documentation and refrence links to understand the complete process.
- Extracted the data
- Cleaned and processed the data.
- Selected the best model using scaled pipe.
- Created models and chose the best model with highest accuracy
0.57821721