FitBot is an AI-driven chatbot that uses large language models (LLMs) such as GPT-4 by OpenAI. It seamlessly integrates with the Nutrition endpoint from API Ninjas, providing accurate nutritional data and personalized health recommendations.
- Nutritional Information Retrieval: Fetches accurate nutritional data of any given food item by leveraging the Nutrition endpoint of API Ninjas.
- Health Calculations: Computes Basal Metabolic Rate (BMR), Total Daily Energy Expenditure (TDEE), Ideal Body Weight (IBW), and more.
- User-Friendly Interaction: Features a chat-like interface that is easy to use and interact with.
- Consistent Learning and Improvement: As the underlying model (GPT-4) continues to learn and improve, so too does FitBot.
To get FitBot up and running, follow these steps:
-
Clone the Repository
git clone https://github.com/[YourUsername]/FitBot.git cd FitBot
-
Setup Virtual Environment (Optional)
It's recommended to create a virtual environment to keep the dependencies required by this project separate.
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install Dependencies
Install the required packages using pip:
pip install -r requirements.txt
-
Run the Project
You're all set! Run the project with:
python run_chatbot.py
Once the chatbot is up and running, you can start asking queries. Here's an example of how to interact with it:
What is the TDEE of a 30-year-old man, who is 180 cm tall, weighs 80 kg, and exercises 3 times a week?
FitBot will generate a meal plan based on the information provided and also inform the person's BMI.
If you encounter any issues or have any questions about the project, feel free to open an issue on this GitHub repository.
FitBot is open-source software licensed under the MIT license.