mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 07:40:12 +01:00
fix: Windows permission error on ingest service tmp files (#1280)
This commit is contained in:
parent
a09cd7a892
commit
f1cbff0fb7
1 changed files with 1 additions and 0 deletions
|
|
@ -121,6 +121,7 @@ class IngestService:
|
||||||
path_to_tmp.write_text(str(file_data))
|
path_to_tmp.write_text(str(file_data))
|
||||||
documents = reader.load_data(path_to_tmp)
|
documents = reader.load_data(path_to_tmp)
|
||||||
finally:
|
finally:
|
||||||
|
tmp.close()
|
||||||
path_to_tmp.unlink()
|
path_to_tmp.unlink()
|
||||||
logger.info(
|
logger.info(
|
||||||
"Transformed file=%s into count=%s documents", file_name, len(documents)
|
"Transformed file=%s into count=%s documents", file_name, len(documents)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue