Don't forget to enter your API key that you got from OpenAi in the scrip :

openai.api_key = " "