Skip to content

Commit

Permalink
update file_load configuration options
Browse files Browse the repository at this point in the history
  • Loading branch information
DARREN OBERST authored and DARREN OBERST committed Mar 25, 2024
1 parent 2c358b9 commit a6279d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llmware/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ def file_save (cfile, file_path, file_name):
return 0

@staticmethod
def file_load (in_path):
record_file = open(in_path, encoding='ISO-8859-1')
c = csv.reader(record_file, dialect='excel', doublequote=False, delimiter=',')
def file_load (in_path, delimiter=",",encoding='ISO-8859-1',errors='ignore'):
record_file = open(in_path, encoding=encoding,errors=errors)
c = csv.reader(record_file, dialect='excel', doublequote=False, delimiter=delimiter)
output = []
for lines in c:
output.append(lines)
Expand Down

0 comments on commit a6279d6

Please sign in to comment.