mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
fixed csv parsing
This commit is contained in:
parent
4e9df76452
commit
f5f33f6de2
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ def load_knowledge_base():
|
|||
|
||||
try:
|
||||
knowledge_base = []
|
||||
with open(csv_path, "r", encoding="utf-8") as file:
|
||||
with open(csv_path, "r", encoding="utf-8-sig") as file:
|
||||
csv_reader = csv.DictReader(file)
|
||||
for row in csv_reader:
|
||||
knowledge_base.append({"path": row["path"], "content": row["content"]})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue