fix docx file

This commit is contained in:
Alex
2023-11-02 18:25:43 +00:00
parent c9dd219565
commit ae5e484506
3 changed files with 5 additions and 2 deletions

View File

@@ -153,7 +153,9 @@ def upload_file():
os.makedirs(save_dir)
file.save(os.path.join(save_dir, filename))
task = ingest.delay(settings.UPLOAD_FOLDER, [".rst", ".md", ".pdf", ".txt"], job_name, filename, user)
task = ingest.delay(settings.UPLOAD_FOLDER, [".rst", ".md", ".pdf", ".txt", ".docx",
".csv", ".epub", ".html", ".mdx"],
job_name, filename, user)
# task id
task_id = task.id
return {"status": "ok", "task_id": task_id}

View File

@@ -20,6 +20,7 @@ click-repl==0.2.0
cryptography==41.0.4
dataclasses-json==0.5.7
decorator==5.1.1
docx2txt==0.8
dill==0.3.6
dnspython==2.3.0
ecdsa==0.18.0