Assuming you are using Linux,just go to the file directory the file is located and type "./OpenAIProject"and it will execute in the terminal. You may need to use the chmod command to update permission. If you are using windows or mac, i am not sure, i have not tested it. Also note that you need to go to the Open AI website and generate an API key.