mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-09-17 18:20:11 +02:00
c4eb46ca19
* implement dnd uploader show file upload progress write files to hotdirector build simple flaskAPI to process files one off * move document processor calls to util build out dockerfile to run both procs at the same time update UI to check for document processor before upload * disable pragma update on boot * dockerfile changes * add filetype restrictions based on python app support response and show rejected files in the UI * cleanup * stub migrations on boot to prevent exit condition * update CF template for AWS deploy
19 lines
522 B
Python
19 lines
522 B
Python
from .convert.as_text import as_text
|
|
from .convert.as_markdown import as_markdown
|
|
from .convert.as_pdf import as_pdf
|
|
from .convert.as_docx import as_docx, as_odt
|
|
|
|
FILETYPES = {
|
|
'.txt': as_text,
|
|
'.md': as_markdown,
|
|
'.pdf': as_pdf,
|
|
'.docx': as_docx,
|
|
'.odt': as_odt,
|
|
}
|
|
|
|
ACCEPTED_MIMES = {
|
|
'text/plain': ['.txt', '.md'],
|
|
'application/vnd.openxmlformats-officedocument.wordprocessingml.document': ['.docx'],
|
|
'application/vnd.oasis.opendocument.text': ['.odt'],
|
|
'application/pdf': ['.pdf'],
|
|
} |