Skip to content

Commit

Permalink
Merge branch 'arc53:main' into code/setting-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
SamsShow authored Nov 3, 2023
2 parents 3d54a1a + b4d7837 commit d1c9375
Show file tree
Hide file tree
Showing 6 changed files with 351 additions and 4 deletions.
4 changes: 3 additions & 1 deletion application/api/user/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
1 change: 1 addition & 0 deletions application/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit d1c9375

Please sign in to comment.