mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-08-29 20:34:08 +00:00
fix: Windows permission error on ingest service tmp files (#1280)
This commit is contained in:
parent
a09cd7a892
commit
f1cbff0fb7
@ -121,6 +121,7 @@ class IngestService:
|
||||
path_to_tmp.write_text(str(file_data))
|
||||
documents = reader.load_data(path_to_tmp)
|
||||
finally:
|
||||
tmp.close()
|
||||
path_to_tmp.unlink()
|
||||
logger.info(
|
||||
"Transformed file=%s into count=%s documents", file_name, len(documents)
|
||||
|
Loading…
Reference in New Issue
Block a user