Git Product home page Git Product logo

movierecommendationsystem_streamlit's Introduction

Recommendation System

1

2

Developed A python App on Pycharm (app.py) which shows Recommended movies on the basis of movies selected.

There are 3 types of recommendation systems:

  • Content Based : Recommendations are provided on the basis of Type of content acessed by user.This is done by creating tags.

  • Collaborative Filtering Based : Recommendations on the basis of common interests shared by multiple users.

  • Hybrid : Which used both content and collaborative Filtering

I have used Streamlit library to create this app (to run use: streamlit run app.py)
And pickle library to make pickle files to be used to extract data in app.py and data is being uploaded through RecommendationSystem.ipynb

  1. In app.py file
similarity=pickle.load(open('similarity.pkl','rb')) 
  1. In RecommendationSystem.ipynb
pickle.dump(similarity,open('similarity.pkl','wb')) 

API

I have Used Api from TMDB to extract poster of Movie through movie id from it

Deployment

I have used Heroku to deploy my project :

Heroku requires : requirements.txt file, ProcFile, setup.sh and .gitignore (The code of each is written Down)

In the terminal of pycharm write following lines to deploy the project :

git init
heroku login
heroku create recomendatnsys
git add .
git commit -m "message"
git push heroku master

codes of each file

  • requirements.txt

write this code in terminal to generate requirements.txt file

pip freeze > requirements.txt

  • Procfile
web: sh setup.sh && streamlit run app.py

  • setup.sh
mkdir -p ~/.streamlit/

echo "\
[general]\n\
email = \"[email protected]\"\n\
" > ~/.streamlit/credentials.toml

echo "\
[server]\n\
headless = true\n\
enableCORS=false\n\
port = $PORT\n\
" > ~/.streamlit/config.toml

  • .gitignore
venv

movierecommendationsystem_streamlit's People

Contributors

deepakkpatil avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.