Calorie Meter is an user frienfly website that accurately predictis Your Calories with MindsDB and Custom Data Insights!
Check out this demo to see Calorie Meter in action:
- Accurate Calorie Predictions: Uses advanced machine learning models from MindsDB to predict calorie counts with high accuracy.
- Custom Data Integration: Upload your own dataset to personalize the calorie prediction model to fit your specific needs.
- User-Friendly Interface: Simple and intuitive UI to input data and get immediate calorie predictions.
- Real-Time Predictions: Get instant predictions as soon as you input your data, powered by the fast and efficient MindsDB engine.
- Detailed Insights: Provides comprehensive insights and analysis based on the predictions to help you make informed dietary choices.
- Open Source: Fully open source, allowing you to customize and extend the app as per your requirements.
-
Clone the Repository:
git clone https://github.com/Sohini3018/calorie-meter-mindsdb.git cd calorie-meter
-
Install Dependencies:
npm install
-
Install the latest version of MindsDB Docker Image and Docker Engine must installed on your local machine.
-
Download the dataset from kaggle:
https://www.kaggle.com/datasets/vaishnavivenkatesan/food-and-their-calories
-
Run this command to start MindsDB in Docker:
docker run -p 47334:47334 -p 47335:47335 mindsdb/mindsdb
-
Go to http://localhost:47334 & select the option to upload the data through files (.csv).
-
Import the dataset & give food_table as the name of the table in the datasource name field.
-
After you press save , it will import data to files database and it had created home_table in the files.
-
Once table is created , you have to create & train the model with the data.
This app utilizes MindsDB to seamlessly integrate machine learning capabilities. MindsDB allows us to train and deploy predictive models efficiently, ensuring accurate and real-time predictions.
For more information on MindsDB, visit MindsDB Documentation.
We welcome contributions from the community. Please feel free to submit a pull request or open an issue if you have any suggestions or enhancements.
Enjoy using Calorie Meter to make smarter dietary choices with the power of MindsDB!
Implementing a responsive design was challenging to ensure consistent and user-friendly behavior across devices. Media queries and flexbox were used to tackle this challenge.
Managing dynamic input options and updating the user's selections in real-time required careful handling of state management to avoid errors and ensure a smooth user experience.
Maintaining a consistent design throughout the website was challenging, especially when combining different CSS features and libraries.
- Visit the Gifty Website: Open your web browser and navigate to http://localhost:3000.
- You will see a start button on the homepage. Click on the start button.
- Mention the Food and Servings.
- Click the "Calculate Calories" button to generate the estimation.
- View the output box to see the predicted calorie count.
- User Accounts: Implement user accounts to save preferences and gift ideas.
- Extended Input Options: Provide more input options to refine prediction.
- Improved Accuracy: Will work on the improvement of the model used.
For any inquiries or feedback, contact me at [email protected].