FormAI utilizes advanced computer vision and machine learning technologies to analyze and improve golf swings. By providing feedback and suggestions, it helps golfers of all skill levels enhance their form and performance.
Before you can run FormAI, you need to install some dependencies and set up required environment variables:
Install Dependencies:
pip install mediapipe opencv-python flaskSet Environment Variables
Open your terminal and run the following command to set your OpenAI API key, replacing yourkey with your actual API key:
echo "export OPENAI_API_KEY='yourkey'" >> ~/.zshrcTo set the secret key for your application, replace yoursecretkey with your actual secret key:
echo "export SECRET_KEY='yoursecretkey'" >> ~/.zshrcUpdate your shell with the new variables:
source ~/.zshrcTo run FormAI locally, use the Flask command:
flask run