Just a simple example on how to use ChatGPT in our python app
To be able to execute this project we need to create an environment
python -m venv env
Activate the environment just created
- Windows:
-
.\env\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
To interact with the API of openAI. You will need an API key, check out this docs: https://platform.openai.com/docs/api-reference/authentication
- Go to your project directory
-
python main.py