The AI Fitness Trainer is a Streamlit web application that provides personalized workout and diet plans based on user input. It utilizes a language model to generate tailored recommendations for achieving fitness goals such as weight loss or weight gain.
The language model used in this project is the LangChain framework, powered by CTransformers. It generates responses based on predefined templates and input variables.
- Personalized workout plans
- Customized diet plans
- BMI calculation
- Goal-specific recommendations
-
Install dependencies:
pip install -r requirements.txt
-
Download the pre-trained language model (
llama-2-13b-chat.ggmlv3.q4_0.bin
) and place it in the project directory.
-
Run the Streamlit application:
streamlit run fitness.py
-
Enter your profile information in the sidebar (name, age, weight, height, gender, fitness goal, and time period).
-
Click on the "Get Recommendations" button to generate personalized workout and diet plans.
-
View the generated plans along with BMI information and total workout time.