Skip to content

This Python project uses Flask and OpenAI's API to generate personalized workout plans. Users input their fitness goals, workout duration, and location. The application then generates a detailed plan, ensuring a consistent workout experience across different environments.

Notifications You must be signed in to change notification settings

epatrik107/Prompt-Engineering-HW-BME

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Personalized Workout Plan Generator

This project is a Python-based web application that generates personalized workout plans. It uses Flask as the web framework and OpenAI's API to generate the workout plans based on user inputs.

Features

  • Users can specify their fitness goal (weight loss or muscle gain), the number of weeks they want the plan to last, and the location where they will be working out.
  • The application sends this information to the OpenAI API, which generates a detailed workout plan.
  • The plan is then formatted and displayed to the user.

Setup

  1. Clone the repository.
  2. Install the required dependencies using pipenv:
pip install pipenv
pipenv install
  1. Set up the environment variables in a .env file:
OPENAI_API_KEY=your_openai_api_key
ASSISTANT_ID=your_assistant_id
THREAD_ID=your_thread_id
  1. Run the application:
python main.py

Usage

Navigate to the application in your web browser. Fill in your fitness goal, the number of weeks, and the location. Click on the "Generate" button to get your personalized workout plan.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License.

About

This Python project uses Flask and OpenAI's API to generate personalized workout plans. Users input their fitness goals, workout duration, and location. The application then generates a detailed plan, ensuring a consistent workout experience across different environments.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published