Ask ChatGPT sample code 1. Get Key from ChatGPT https://platform.openai.com/account/api-keys Personal > View API Keys > +Create new secret key 2. Save key in file : .env OPENAI_API_KEY=sk-...lxnK 3. Install python libraries python.exe -m pip install --upgrade pip pip install openai pip install python-dotenv pip install gradio 4. Run py ./AskChatGpt.py