Coder Social home page Coder Social logo

zakaria-narjis / diet-recommendation-system Goto Github PK

View Code? Open in Web Editor NEW
98.0 2.0 44.0 92.87 MB

Food/Diet Recommendation system using machine learning

Home Page: https://diet-recommendation-system.streamlit.app/

License: Apache License 2.0

Jupyter Notebook 73.73% Python 25.74% Dockerfile 0.53%
diet-recommender food-recommendation machine-learning recommendation-system scikit-learn

diet-recommendation-system's People

Contributors

zakaria-narjis avatar

Stargazers

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

Watchers

 avatar  avatar

diet-recommendation-system's Issues

Error in Backend and Command to run project

Useing command python -m streamlit run Hello.py in Streamlit_Forntend
Error in backend at
ConnectionError: HTTPConnectionPool(host='backend', port=8080): Max retries exceeded with url: /predict/ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000022E63DFA320>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
please let me know how to start project and run the project
my email:[email protected]

Unable to run project using Docker compose

Hello, i tried running the project using docker compose in vs code and it worked succesfully:
VS Code image:
image

However, when i opened docker desktop there was no clickalble link to run the frontend.
Here is the image of Docker desktop:
Screenshot (12)
Please help.

Backend API

In the post method, what parameters do you include? I don't quite understand.
I wanna try in postman

Broken Dataset

main.py can't access the dataset inside Data folder and when i opened it, all the rows are vague

Traceback (most recent call last):
  File "/Users/r/Documents/Bangkit Academy/Diet-Recommendation-System/FastAPI_Backend/main.py", line 8, in <module>
    dataset=pd.read_csv('../Data/dataset.csv' ,compression='gzip')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/r/anaconda3/lib/python3.11/site-packages/pandas/util/_decorators.py", line 211, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/r/anaconda3/lib/python3.11/site-packages/pandas/util/_decorators.py", line 331, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/r/anaconda3/lib/python3.11/site-packages/pandas/io/parsers/readers.py", line 950, in read_csv
    return _read(filepath_or_buffer, kwds)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/r/anaconda3/lib/python3.11/site-packages/pandas/io/parsers/readers.py", line 611, in _read
    return parser.read(nrows)
           ^^^^^^^^^^^^^^^^^^
  File "/Users/r/anaconda3/lib/python3.11/site-packages/pandas/io/parsers/readers.py", line 1778, in read
    ) = self._engine.read(  # type: ignore[attr-defined]
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/r/anaconda3/lib/python3.11/site-packages/pandas/io/parsers/c_parser_wrapper.py", line 230, in read
    chunks = self._reader.read_low_memory(nrows)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "pandas/_libs/parsers.pyx", line 808, in pandas._libs.parsers.TextReader.read_low_memory
  File "pandas/_libs/parsers.pyx", line 866, in pandas._libs.parsers.TextReader._read_rows
  File "pandas/_libs/parsers.pyx", line 852, in pandas._libs.parsers.TextReader._tokenize_rows
  File "pandas/_libs/parsers.pyx", line 1973, in pandas._libs.parsers.raise_parser_error
pandas.errors.ParserError: Error tokenizing data. C error: Expected 5 fields in line 176, saw 6

Where is user data i.e., BMI is being used?

I have reviewed the recommendation code but it ain't using data of user ( age, height, gender, exercise level) which is collected at runtime. then ain't this just simple recommendation using weight level and bmi to manage the calories?
if not, It would be very helpful if I can know where is user profile being used which makes this personalized

problem in the code bro

Backend code is not working with frontend .I tried so many times. Bro check the code properly.

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.