- Create a new virtual environment
python3 -m venv env
- Activate the virtual environment
source env/bin/activate
- Install required packages
pip install -r requirements.txt
- Define the Python file to be used by Flask
export FLASK_APP=app.py
- Start the app
flask run --debug
- Deploy with
gcloud run deploy
Do not push the key API_Keys.json on GitHug as it is public, if done OpenAI will detect it and mark the key as leaked. Adding the key to the .gitignore file generate an error because when deploying the file is ignored...