Skip to content

Latest commit

 

History

History
40 lines (19 loc) · 714 Bytes

File metadata and controls

40 lines (19 loc) · 714 Bytes

NLP_talk

Natural language processing talk python chatgpt openai

If you don’t have Python installed, install it

Clone the following repository https://github.com/openai/openai-quickstart-python.git

Navigate into the project directory

$ cd openai-quickstart-python Create a new virtual environment

$ python -m venv venv $ . venv/bin/activate Install the requirements

$ pip install -r requirements.txt Make a copy of the example environment variables file

then python -m pip install speech_recognition

python -m pip install pyttsx3

modify the chat.py code with the following or using your own keys

openai.organization = "org- "

openai.api_key = "sk- "

and run the chat.py by python chat.py