Repository
AI-Agents-as-Personal-Trainers--Customizing-Fitness-Routines-with-LLMs
AI Fitness Coach: Customizing Fitness Routines with LLMs
README
AI Fitness Coach: Customizing Fitness Routines with LLMs
This project implements an AI-powered Fitness Coach that creates personalized fitness plans using Large Language Models (LLMs). It leverages the LangChain and LangGraph frameworks to create a multi-agent system that interacts with users, generates fitness plans, and provides ongoing support and motivation.
Features
- User profile creation based on input data
- Personalized fitness plan generation
- Feedback collection and plan adjustment
- Progress monitoring
- Motivational support
- Interactive Gradio UI for easy user interaction
Caution
Important Note: While this AI Fitness Coach aims to provide personalized fitness advice, it should not be considered a substitute for professional medical or fitness expertise. The generated plans are based on general fitness principles and may not account for all individual health conditions or circumstances. Always consult with a healthcare professional or certified fitness trainer before starting any new exercise regimen, especially if you have pre-existing health conditions or injuries.
Requirements
- Python 3.7+
- LangChain
- LangGraph
- Gradio
- Ollama
- LangChain Community
Installation
-
Clone this repository:
git clone https://github.com/imanoop7/AI-Agents-as-Personal-Trainers--Customizing-Fitness-Routines-with-LLMs cd AI-Agents-as-Personal-Trainers--Customizing-Fitness-Routines-with-LLMs -
Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate` -
Install the required packages:
pip install -r requirements.txt -
Ensure you have Ollama installed and running on your system. Visit Ollama's website for installation instructions.
Usage
-
Run the main script:
python main.py -
Open your web browser and go to the URL displayed in the console (usually
http://127.0.0.1:7860). -
Use the Gradio interface to input your personal information and fitness goals.
-
Receive a personalized fitness plan generated by the AI Fitness Coach.
-
Provide feedback and receive updated plans as needed.
Project Structure
main.py: The main script that sets up the AI Fitness Coach and Gradio UI.requirements.txt: List of Python package dependencies.
Contributing
Contributions to improve the AI Fitness Coach are welcome! Please feel free to submit issues and pull requests.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- This project uses the LangChain and LangGraph frameworks.
- The Gradio library is used for the user interface.
- Ollama is used for running the language models locally.