raks96/ai-workout
0
๐๏ธ AI Workout Planner
An intelligent workout planning application that generates personalized exercise routines based on your target muscle groups, available time, and fitness goals.
Features
- Muscle Group Selection: Choose from 9 different muscle groups including Chest, Back, Shoulders, Arms, Legs, Glutes, Core, Calves, or Full Body
- Duration Options: Select workout duration from 15 minutes to 2 hours
- Goal-Based Planning: Describe your visual and fitness goals in natural language
- AI-Powered Suggestions: Uses TinyLlama-1.1B-Chat model for intelligent workout generation
- Fallback System: Structured workout plans when AI generation fails
- Beautiful UI: Modern Gradio interface with intuitive design
How to Use
- Select Target Muscle Group: Choose which muscles you want to focus on
- Set Duration: Pick how long you want to work out
- Describe Goals: Write a brief description of your fitness objectives (e.g., "I want to build lean muscle and improve definition")
- Generate Plan: Click the button to get your personalized workout plan
Example Goals
- "I want to build lean muscle mass and improve definition"
- "I want to get stronger and more powerful"
- "I want to tone up and improve my physique"
- "I want to build mass and size"
Technical Details
- Model: TinyLlama-1.1B-Chat (optimized for dialogue and efficiency)
- Framework: Gradio for the web interface
- Backend: PyTorch and HuggingFace Transformers
- Deployment: Ready for Hugging Face Spaces
Local Development
pip install -r requirements.txt
python app.pyThe app will be available at http://localhost:7860
Deployment on Hugging Face Spaces
- Create a new Space on Hugging Face
- Upload these files:
app.py,requirements.txt,README.md - Set the Space SDK to "Gradio"
- The app will automatically deploy and be available at your Space URL
Model Information
This app uses TinyLlama-1.1B-Chat, a highly efficient language model that:
- Optimized specifically for chat and dialogue applications
- 1.1 billion parameters for superior workout plan generation
- Runs extremely efficiently on CPU with fast inference
- Designed for resource-constrained environments like Hugging Face Spaces
