Follow these instructions to set up and run the project locally.
Make sure you have the following installed on your machine:
- Python (3.7 or higher)
- pip (Python package installer)
- Django
- Clone the Repository:
git clone https://github.com/vinay-s36/Sentiment-analyzer.git
- Navigate to the Project Directory:
cd Sentiment-analyzer
- Create a Virtual Environment (Optional but recommended):
python -m venv venv
- Activate the Virtual Environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- Install Dependencies:
pip install -r requirements.txt
- Run Migrations:
python manage.py migrate
-
Downloading KNN Model:
- Click on the following link to download the model file: knn_model
- Save the downloaded model file (knn_model.pkl) in the 'backendapp' directory.
-
Run the Development Server:
python manage.py runserver
The development server will start running at http://127.0.0.1:8000/