CoolFace
Apppublic

raks96/ai-workout

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

๐Ÿ‹๏ธ 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

  1. 1.Select Target Muscle Group: Choose which muscles you want to focus on
  2. 2.Set Duration: Pick how long you want to work out
  3. 3.Describe Goals: Write a brief description of your fitness objectives (e.g., "I want to build lean muscle and improve definition")
  4. 4.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

bash
pip install -r requirements.txt
python app.py

The app will be available at http://localhost:7860

Deployment on Hugging Face Spaces

  1. 1.Create a new Space on Hugging Face
  2. 2.Upload these files: app.py, requirements.txt, README.md
  3. 3.Set the Space SDK to "Gradio"
  4. 4.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