Backend EC2 Instance has been terminated so api's and website won't work
NOTES
To use the Recommender API that I have created in this project Click on this Link
MOVIE-RECOMMENDER is a Web app built using Django and Vuejs. The Machine Learning Algorithm used to implement recommender system is Cosine similarity. To fetch the movie and it's cast detail TMDB Apis is used.
let movieName = "Avatar"; // Name of movie
let URL = "http://ec2-3-142-140-94.us-east-2.compute.amazonaws.com:8000/recommender/";
let options = {
method: "POST",
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"text": movieName
})
}
fetch(URL, options)
.then(res => res.json())
.then(movies => console.log(movies)) // Array of all recommender Movies
.catch(err => console.log(err.response))
import requests
import json
movieName = "Avatar"
URL = "http://ec2-3-142-140-94.us-east-2.compute.amazonaws.com:8000/recommender/"
headers = {
'Content-Type': 'application/json'
}
data = json.dumps({
'text': movieName
})
response = requests.post(URL, data=data, headers=headers)
data = json.loads(response.text)
print(data)
The recommender system calculates the cosine similarity beween the different movies and lesser the angle ‘θ’ greated is the similarity.
To know more about the Cosine Similarity Read this Blog
git clone https://github.com/jhabarsingh/MOVIE-RECOMMENDER.git
cd MOVIE-RECOMMENDER
python3 -m venv env # Python 3.6.9 or 3.7.0 version
source env/bin/activate
python3 -m pip install --upgrade pip
pip install -r requirements.txt
python manage.py runserver
git clone https://github.com/jhabarsingh/MOVIE-RECOMMENDER.git
cd MOVIE-RECOMMENDER
conda create -n hatespeech python==3.7
conda activate hatespeech
python3 -m pip install --upgrade pip
pip install -r requirements.txt
python manage.py runserver
sudo apt-get install docker docker-compose # Install docker, docker-compose on linux
git clone https://github.com/jhabarsingh/MOVIE-RECOMMENDER.git
cd MOVIE-RECOMMENDER
sudo docker-compose up
Install node | Install vue/cli
git clone https://github.com/jhabarsingh/MOVIE-RECOMMENDER.git
cd MOVIE-RECOMMENDER
npm install # Nodejs should be installed
npm run start # Vuejs should be installed
- You can create an issue if you find any bug.
- You can work on an existing issue and Send PR.
- You can make changes in the design if it is needed.
- Even if you find any grammatical or spelling mistakes then also you can create an issue.
I would be glad to see a notification saying
User {xyz} created a Pull Request
. I promise to review it.