Giter VIP home page Giter VIP logo

data-science-community-srm / food-recommendation-system Goto Github PK

View Code? Open in Web Editor NEW
21.0 3.0 18.0 841 KB

This is a machine learning web app, which when executed, the client gets to choose a food item based on his own liking, and we recommend 10 more such similar foods through our recommendation system.

Jupyter Notebook 58.95% Python 41.05%
recommender-system streamlit-webapp heroku jupyter-notebook

food-recommendation-system's Introduction

Food Recomendation System

This is a machine learning web app, when executed, the client gets to choose a food item based on his own liking, and we recommend 10 more such similar foods through our recommendation system. Our system utilizes item-based collaborative filtering to implement the same. We provide a variety of cuisines to choose from with vegetarian/non-vegetarian options as well.


DOCS UI

Preview

The Project is Deployed at https://foodrecomm.herokuapp.com/

streamlit-app-2021-03-03-18-03-82

Functionalities

  • User can choose vegetarian/non-vegetarian options
  • User can select from a variety of cuisines
  • The rating scale can be set by the user
  • Our system recommends 10 food items similar to the user's initial choice

Instructions to run

  • Pre-requisites:

    • Streamlit
    • Python 3.6-3.9
  • Install Streamlit

$ pip install streamlit
  • Executing the source file
$ streamlit run app.py

Contributors

Ayush Jindal

Your Name Here (Insert Your Image Link In Src

Joshikha M

Your Name Here (Insert Your Image Link In Src

Suvodeep Sinha

Your Name Here (Insert Your Image Link In Src

License

License

Made with ❤️ by DS Community SRM

food-recommendation-system's People

Contributors

ayushjindal23 avatar cipheraxat avatar mjoshikha avatar saxenabhishek avatar suvoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

food-recommendation-system's Issues

how can solve this issue Error: Invalid value: File does not exist: app.py

root@machineteacheble-ubuntu-s-8vcpu-16gb-nyc1-01:~# apt install python3-pip

Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-pip is already the newest version (20.0.2-5ubuntu1.5).
The following packages were automatically installed and are no longer required:
  python3-cliapp python3-markdown python3-packaging python3-pygments
  python3-pyparsing python3-ttystatus
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.

root@machineteacheble-ubuntu-s-8vcpu-16gb-nyc1-01:~# git clone https://github.com/Data-Science-Community-SRM/Food-Recommendation-System.git

Cloning into 'Food-Recommendation-System'...
remote: Enumerating objects: 126, done.
remote: Counting objects: 100% (126/126), done.
remote: Compressing objects: 100% (113/113), done.
remote: Total 126 (delta 48), reused 27 (delta 5), pack-reused 0
Receiving objects: 100% (126/126), 805.85 KiB | 7.75 MiB/s, done.
Resolving deltas: 100% (48/48), done.

root@machineteacheble-ubuntu-s-8vcpu-16gb-nyc1-01:~# cd Food-Recommendation-System/

root@machineteacheble-ubuntu-s-8vcpu-16gb-nyc1-01:~/Food-Recommendation-System# pip install streamlit

Collecting streamlit
  Downloading streamlit-0.82.0-py2.py3-none-any.whl (8.2 MB)
	 |████████████████████████████████| 8.2 MB 22.3 MB/s
Collecting click<8.0,>=7.0
  Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
	 |████████████████████████████████| 82 kB 1.7 MB/s
Requirement already satisfied: pandas>=0.21.0 in /usr/local/lib/python3.8/dist-packages (from streamlit) (1.2.4)
Collecting astor
  Downloading astor-0.8.1-py2.py3-none-any.whl (27 kB)
Collecting pydeck>=0.1.dev5
  Downloading pydeck-0.6.2-py2.py3-none-any.whl (4.2 MB)
	 |████████████████████████████████| 4.2 MB 46.9 MB/s
Requirement already satisfied: blinker in /usr/lib/python3/dist-packages (from streamlit) (1.4)
Requirement already satisfied: protobuf!=3.11,>=3.6.0 in /usr/local/lib/python3.8/dist-packages (from streamlit) (3.17.1)
Collecting validators
  Downloading validators-0.18.2-py3-none-any.whl (19 kB)
Collecting tornado>=5.0
  Downloading tornado-6.1-cp38-cp38-manylinux2010_x86_64.whl (427 kB)
	 |████████████████████████████████| 427 kB 53.1 MB/s
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from streamlit) (2.22.0)
Collecting tzlocal
  Downloading tzlocal-2.1-py2.py3-none-any.whl (16 kB)
Collecting gitpython
  Downloading GitPython-3.1.17-py3-none-any.whl (166 kB)
	 |████████████████████████████████| 166 kB 58.3 MB/s
Requirement already satisfied: pillow>=6.2.0 in /usr/local/lib/python3.8/dist-packages (from streamlit) (6.2.2)
Requirement already satisfied: numpy in /usr/local/lib/python3.8/dist-packages (from streamlit) (1.18.1)
Collecting altair>=3.2.0
  Downloading altair-4.1.0-py3-none-any.whl (727 kB)
	 |████████████████████████████████| 727 kB 61.1 MB/s
Collecting pyarrow; python_version < "3.9"
  Downloading pyarrow-4.0.1-cp38-cp38-manylinux2014_x86_64.whl (21.9 MB)
	 |████████████████████████████████| 21.9 MB 45.9 MB/s
Requirement already satisfied: packaging in /usr/lib/python3/dist-packages (from streamlit) (20.3)
Collecting toml
  Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB)
Requirement already satisfied: python-dateutil in /usr/local/lib/python3.8/dist-packages (from streamlit) (2.8.1)
Collecting base58
  Downloading base58-2.1.0-py3-none-any.whl (5.6 kB)
Collecting watchdog; platform_system != "Darwin"
  Downloading watchdog-2.1.2-py3-none-manylinux2014_x86_64.whl (74 kB)
	 |████████████████████████████████| 74 kB 5.6 MB/s
Requirement already satisfied: cachetools>=4.0 in /usr/local/lib/python3.8/dist-packages (from streamlit) (4.2.2)
Requirement already satisfied: pytz>=2017.3 in /usr/local/lib/python3.8/dist-packages (from pandas>=0.21.0->streamlit) (2021.1)
Collecting traitlets>=4.3.2
  Downloading traitlets-5.0.5-py3-none-any.whl (100 kB)
	 |████████████████████████████████| 100 kB 12.7 MB/s
Collecting ipywidgets>=7.0.0
  Downloading ipywidgets-7.6.3-py2.py3-none-any.whl (121 kB)
	 |████████████████████████████████| 121 kB 64.2 MB/s
Requirement already satisfied: jinja2>=2.10.1 in /usr/local/lib/python3.8/dist-packages (from pydeck>=0.1.dev5->streamlit) (3.0.1)
Collecting ipykernel>=5.1.2; python_version >= "3.4"
  Downloading ipykernel-5.5.5-py3-none-any.whl (120 kB)
	 |████████████████████████████████| 120 kB 54.9 MB/s
Requirement already satisfied: six>=1.9 in /usr/local/lib/python3.8/dist-packages (from protobuf!=3.11,>=3.6.0->streamlit) (1.15.0)
Collecting decorator>=3.4.0
  Downloading decorator-5.0.9-py3-none-any.whl (8.9 kB)
Collecting gitdb<5,>=4.0.1
  Downloading gitdb-4.0.7-py3-none-any.whl (63 kB)
	 |████████████████████████████████| 63 kB 3.1 MB/s
Requirement already satisfied: jsonschema in /usr/lib/python3/dist-packages (from altair>=3.2.0->streamlit) (3.2.0)
Collecting toolz
  Downloading toolz-0.11.1-py3-none-any.whl (55 kB)
	 |████████████████████████████████| 55 kB 6.5 MB/s
Requirement already satisfied: entrypoints in /usr/lib/python3/dist-packages (from altair>=3.2.0->streamlit) (0.3)
Collecting ipython-genutils
  Downloading ipython_genutils-0.2.0-py2.py3-none-any.whl (26 kB)
Collecting jupyterlab-widgets>=1.0.0; python_version >= "3.6"
  Downloading jupyterlab_widgets-1.0.0-py3-none-any.whl (243 kB)
	 |████████████████████████████████| 243 kB 50.8 MB/s
Collecting nbformat>=4.2.0
  Downloading nbformat-5.1.3-py3-none-any.whl (178 kB)
	 |████████████████████████████████| 178 kB 65.1 MB/s
Collecting widgetsnbextension~=3.5.0
  Downloading widgetsnbextension-3.5.1-py2.py3-none-any.whl (2.2 MB)
	 |████████████████████████████████| 2.2 MB 66.3 MB/s
Collecting ipython>=4.0.0; python_version >= "3.3"
  Downloading ipython-7.24.1-py3-none-any.whl (785 kB)
	 |████████████████████████████████| 785 kB 43.9 MB/s
Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.8/dist-packages (from jinja2>=2.10.1->pydeck>=0.1.dev5->streamlit) (2.0.1)
Collecting jupyter-client
  Downloading jupyter_client-6.1.12-py3-none-any.whl (112 kB)
	 |████████████████████████████████| 112 kB 55.0 MB/s
Collecting smmap<5,>=3.0.1
  Downloading smmap-4.0.0-py2.py3-none-any.whl (24 kB)
Collecting jupyter-core
  Downloading jupyter_core-4.7.1-py3-none-any.whl (82 kB)
	 |████████████████████████████████| 82 kB 2.1 MB/s
Collecting notebook>=4.4.1
  Downloading notebook-6.4.0-py3-none-any.whl (9.5 MB)
	 |████████████████████████████████| 9.5 MB 52.0 MB/s
Collecting pickleshare
  Downloading pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB)
Requirement already satisfied: setuptools>=18.5 in /usr/lib/python3/dist-packages (from ipython>=4.0.0; python_version >= "3.3"->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit) (45.2.0)
Requirement already satisfied: pexpect>4.3; sys_platform != "win32" in /usr/lib/python3/dist-packages (from ipython>=4.0.0; python_version >= "3.3"->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit) (4.6.0)
Collecting matplotlib-inline
  Downloading matplotlib_inline-0.1.2-py3-none-any.whl (8.2 kB)
Collecting backcall
  Downloading backcall-0.2.0-py2.py3-none-any.whl (11 kB)
Collecting prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0
  Downloading prompt_toolkit-3.0.18-py3-none-any.whl (367 kB)
	 |████████████████████████████████| 367 kB 61.7 MB/s
Requirement already satisfied: pygments in /usr/lib/python3/dist-packages (from ipython>=4.0.0; python_version >= "3.3"->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit) (2.3.1)
Collecting jedi>=0.16
  Downloading jedi-0.18.0-py2.py3-none-any.whl (1.4 MB)
	 |████████████████████████████████| 1.4 MB 62.3 MB/s
Collecting pyzmq>=13
  Downloading pyzmq-22.1.0-cp38-cp38-manylinux2010_x86_64.whl (1.1 MB)
	 |████████████████████████████████| 1.1 MB 63.4 MB/s
Collecting nbconvert
  Downloading nbconvert-6.0.7-py3-none-any.whl (552 kB)
	 |████████████████████████████████| 552 kB 50.3 MB/s
Collecting Send2Trash>=1.5.0
  Downloading Send2Trash-1.5.0-py3-none-any.whl (12 kB)
Collecting prometheus-client
  Downloading prometheus_client-0.11.0-py2.py3-none-any.whl (56 kB)
	 |████████████████████████████████| 56 kB 6.9 MB/s
Collecting terminado>=0.8.3
  Downloading terminado-0.10.0-py3-none-any.whl (14 kB)
Collecting argon2-cffi
  Downloading argon2_cffi-20.1.0-cp35-abi3-manylinux1_x86_64.whl (97 kB)
	 |████████████████████████████████| 97 kB 9.3 MB/s
Collecting wcwidth
  Downloading wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Collecting parso<0.9.0,>=0.8.0
  Downloading parso-0.8.2-py2.py3-none-any.whl (94 kB)
	 |████████████████████████████████| 94 kB 4.5 MB/s
Collecting bleach
  Downloading bleach-3.3.0-py2.py3-none-any.whl (283 kB)
	 |████████████████████████████████| 283 kB 55.5 MB/s
Collecting pandocfilters>=1.4.1
  Downloading pandocfilters-1.4.3.tar.gz (16 kB)
Collecting jupyterlab-pygments
  Downloading jupyterlab_pygments-0.1.2-py2.py3-none-any.whl (4.6 kB)
Collecting defusedxml
  Downloading defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
Collecting mistune<2,>=0.8.1
  Downloading mistune-0.8.4-py2.py3-none-any.whl (16 kB)
Collecting testpath
  Downloading testpath-0.5.0-py3-none-any.whl (84 kB)
	 |████████████████████████████████| 84 kB 6.3 MB/s
Collecting nbclient<0.6.0,>=0.5.0
  Downloading nbclient-0.5.3-py3-none-any.whl (82 kB)
	 |████████████████████████████████| 82 kB 1.7 MB/s
Collecting ptyprocess; os_name != "nt"
  Downloading ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)
Requirement already satisfied: cffi>=1.0.0 in /usr/local/lib/python3.8/dist-packages (from argon2-cffi->notebook>=4.4.1->widgetsnbextension~=3.5.0->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit) (1.14.5)
Collecting webencodings
  Downloading webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Collecting nest-asyncio
  Downloading nest_asyncio-1.5.1-py3-none-any.whl (5.0 kB)
Collecting async-generator
  Downloading async_generator-1.10-py3-none-any.whl (18 kB)
Requirement already satisfied: pycparser in /usr/local/lib/python3.8/dist-packages (from cffi>=1.0.0->argon2-cffi->notebook>=4.4.1->widgetsnbextension~=3.5.0->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit) (2.20)
Building wheels for collected packages: pandocfilters
  Building wheel for pandocfilters (setup.py) ... done
  Created wheel for pandocfilters: filename=pandocfilters-1.4.3-py3-none-any.whl size=7992 sha256=0722d520af2c272ca42080bcf96ede4f3ace3b38e669485fa1b3fd0ff5209691
  Stored in directory: /root/.cache/pip/wheels/fc/39/52/8d6f3cec1cca4ceb44d658427c35711b19d89dbc4914af657f
Successfully built pandocfilters
ERROR: jupyterlab-pygments 0.1.2 has requirement pygments<3,>=2.4.1, but you'll have pygments 2.3.1 which is incompatible.
ERROR: nbconvert 6.0.7 has requirement pygments>=2.4.1, but you'll have pygments 2.3.1 which is incompatible.
Installing collected packages: click, astor, ipython-genutils, traitlets, pyzmq, tornado, jupyter-core, jupyter-client, decorator, pickleshare, matplotlib-inline, backcall, wcwidth, prompt-toolkit, parso, jedi, ipython, ipykernel, jupyterlab-widgets, nbformat, webencodings, bleach, pandocfilters, jupyterlab-pygments, defusedxml, mistune, testpath, nest-asyncio, async-generator, nbclient, nbconvert, Send2Trash, prometheus-client, ptyprocess, terminado, argon2-cffi, notebook, widgetsnbextension, ipywidgets, pydeck, validators, tzlocal, smmap, gitdb, gitpython, toolz, altair, pyarrow, toml, base58, watchdog, streamlit
  Attempting uninstall: click
	Found existing installation: click 8.0.1
	Uninstalling click-8.0.1:
	  Successfully uninstalled click-8.0.1
Successfully installed Send2Trash-1.5.0 altair-4.1.0 argon2-cffi-20.1.0 astor-0.8.1 async-generator-1.10 backcall-0.2.0 base58-2.1.0 bleach-3.3.0 click-7.1.2 decorator-5.0.9 defusedxml-0.7.1 gitdb-4.0.7 gitpython-3.1.17 ipykernel-5.5.5 ipython-7.24.1 ipython-genutils-0.2.0 ipywidgets-7.6.3 jedi-0.18.0 jupyter-client-6.1.12 jupyter-core-4.7.1 jupyterlab-pygments-0.1.2 jupyterlab-widgets-1.0.0 matplotlib-inline-0.1.2 mistune-0.8.4 nbclient-0.5.3 nbconvert-6.0.7 nbformat-5.1.3 nest-asyncio-1.5.1 notebook-6.4.0 pandocfilters-1.4.3 parso-0.8.2 pickleshare-0.7.5 prometheus-client-0.11.0 prompt-toolkit-3.0.18 ptyprocess-0.7.0 pyarrow-4.0.1 pydeck-0.6.2 pyzmq-22.1.0 smmap-4.0.0 streamlit-0.82.0 terminado-0.10.0 testpath-0.5.0 toml-0.10.2 toolz-0.11.1 tornado-6.1 traitlets-5.0.5 tzlocal-2.1 validators-0.18.2 watchdog-2.1.2 wcwidth-0.2.5 webencodings-0.5.1 widgetsnbextension-3.5.1

root@machineteacheble-ubuntu-s-8vcpu-16gb-nyc1-01:~/Food-Recommendation-System# streamlit run app.py

Usage: streamlit run [OPTIONS] TARGET [ARGS]...

Error: Invalid value: File does not exist: app.py

Issues

SRM slaying students for these bullshit clubs

how solve No module named 'plotly'

ModuleNotFoundError: No module named 'plotly'
Traceback:
File "/usr/local/lib/python3.8/dist-packages/streamlit/script_runner.py", line 338, in _run_script
	exec(code, module.__dict__)
File "/root/Food-Recommendation-System/deploy/app.py", line 4, in <module>
	from plotly import graph_objs as go

root@machineteacheble-ubuntu-s-8vcpu-16gb-nyc1-01:~/Food-Recommendation-System/deploy# streamlit run app.py

  You can now view your Streamlit app in your browser.

  Network URL: http://ip:8501
  External URL: http://ip:8501

pls tell me commands for solve this
Tnks

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.