Skip to content

Commit 5e4c005

Browse files
authored
Update Fine-tuned_classification.ipynb
1 parent 5c12727 commit 5e4c005

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/Fine-tuned_classification.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
{
1313
"cell_type": "code",
14-
"execution_count": 2,
14+
"execution_count": 9,
1515
"metadata": {},
1616
"outputs": [],
1717
"source": [
@@ -20,7 +20,7 @@
2020
"import openai\n",
2121
"import os\n",
2222
"\n",
23-
"client = openai.OpenAI(api_key=os.environ.get(\"OPENAI_API_KEY\"))\n",
23+
"client = openai.OpenAI(api_key=os.environ.get(\"OPENAI_API_KEY\", \"<your OpenAI API key if not set as env var>\"))\n",
2424
"\n",
2525
"categories = ['rec.sport.baseball', 'rec.sport.hockey']\n",
2626
"sports_dataset = fetch_20newsgroups(subset='train', shuffle=True, random_state=42, categories=categories)"
@@ -666,7 +666,7 @@
666666
"name": "python",
667667
"nbconvert_exporter": "python",
668668
"pygments_lexer": "ipython3",
669-
"version": "3.12.1"
669+
"version": "3.11.3"
670670
},
671671
"orig_nbformat": 4
672672
},

0 commit comments

Comments
 (0)