The aim of this project is to predict whether a person is depressed or not using different machine learning algorithms based on the tweets of the user.
- Create an account with the API provider and Get the Tweepy API Key and replace < your-api-key > in the file api_keys.py.
- Download the Final Code.ipynb file. This file can be run in Jupyter notebook or using google colab.
- In the Data Extraction part, after extracting the required number of tweets give keyboard interrupt and 'tweets_file.txt' will be saved.
- After executing the entire code in Final Code.ipynb, 2 pickle files "model.pkl" and "vectorizer.pkl" files can be obtained .
- Download the static and templates folder and app.py.
- Setup a Flask environment in an editor of your choice (such as Visual Studio code - install a virtual environment and install flask and other required packages in the virtual environment).
- Run the flask app - app.py file.
- The web app will run in the localhost.