mirror of
https://github.com/james-m-jordan/openai-cookbook.git
synced 2025-05-09 19:32:38 +00:00
Fix UTF-8 encoding in Chat_finetuning_data_prep.ipynb (#648)
This commit is contained in:
parent
63f95154b1
commit
1945bfe65c
@ -8,7 +8,6 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import json\n",
|
||||
"import os\n",
|
||||
"import tiktoken\n",
|
||||
"import numpy as np\n",
|
||||
"from collections import defaultdict"
|
||||
@ -32,7 +31,7 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# Load dataset\n",
|
||||
"with open(data_path) as f:\n",
|
||||
"with open(data_path, 'r', encoding='utf-8') as f:\n",
|
||||
" dataset = [json.loads(line) for line in f]"
|
||||
]
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user