From 7ee56acba003440510541aa0b758080888adfab7 Mon Sep 17 00:00:00 2001 From: Logan Zou <74288839+nowadays0421@users.noreply.github.com> Date: Sat, 3 Jun 2023 18:57:49 +0800 Subject: [PATCH] Update 3.Classification.ipynb --- .../3.Classification.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/Building Systems with the ChatGPT API/3.Classification.ipynb b/content/Building Systems with the ChatGPT API/3.Classification.ipynb index 5198713..181fddd 100644 --- a/content/Building Systems with the ChatGPT API/3.Classification.ipynb +++ b/content/Building Systems with the ChatGPT API/3.Classification.ipynb @@ -30,7 +30,7 @@ "import openai\n", "from dotenv import load_dotenv, find_dotenv\n", "_ = load_dotenv(find_dotenv()) # read local .env file\n", - "os.environ['OPENAI_API_KEY']" + "openai.api_key = os.environ['OPENAI_API_KEY']" ] }, {