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
Python3
andpip
is installed on the system. - Create a
virtualenv
by executing the following command:virtualenv -p python3 env
. - Activate the
env
virtual environment by executing the follwing command:source env/bin/activate
. - Enter the cloned repository directory and execute
pip install -r requirements.txt
. - Enter
python
shell andimport nltk
. Executenltk.download()
and exit the shell. - Add a .env and add required environment variables.
- Now, execute the following command:
python app.py
and it will point to thelocalhost
with the port. - Hit the
IP Address
on 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