This is a implementation of openai-davinci-003 using python3.
There are two main files:
- chatbot.py: Implementation of Davinci 003 via console
- chatbot_with_voice.py: Implementation of Davinci 003 via console with audio response
- First you must have python3 installed on your computer and pip as well;
- Then, install the dependencies:
# zsh
$ pip install --upgrade openai
$ pip install --upgrade pyttsx3
In order to use openai api you must have an account and a access key wich can be generated here.
Once done, replace in file the value of YOUR_API_KEY with your key, like as follows:
# OLD: ai.api_key = YOUR_API_KEY
ai.api_key = XYQLD...
and then you are ready to go!
To run this app, execute:
# chat bot
$ python chatbot.py
# chat bot with voice
$ python chatbot_with_voice.py
In addition, you can type 'quit' to exit the program or 'cls' to clear the console, regardless of whether you use linux or windows, there is already a treatment for both.
This project is under license MIT.
Made with ❤️ by Gabriel Santos 👋🏽 Contact!