Updated the Windows PC encoding fix with thanks to CG and Jon R
This commit is contained in:
@@ -88,8 +88,10 @@
|
||||
"\n",
|
||||
"folders = glob.glob(\"knowledge-base/*\")\n",
|
||||
"\n",
|
||||
"# With thanks to Jon R, a student on the course, for this fix needed for some users \n",
|
||||
"text_loader_kwargs={'autodetect_encoding': True}\n",
|
||||
"# With thanks to CG and Jon R, students on the course, for this fix needed for some users \n",
|
||||
"text_loader_kwargs = {'encoding': 'utf-8'}\n",
|
||||
"# If that doesn't work, some Windows users might need to uncomment the next line instead\n",
|
||||
"# text_loader_kwargs={'autodetect_encoding': True}\n",
|
||||
"\n",
|
||||
"documents = []\n",
|
||||
"for folder in folders:\n",
|
||||
|
||||
Reference in New Issue
Block a user