Skip to content

Commit

Permalink
Merge pull request #1052 from i-dot-ai/bugfix/image-rollback
Browse files Browse the repository at this point in the history
Revert ability to process images
  • Loading branch information
wpfl-dbt authored Sep 17, 2024
2 parents 9a04163 + 39b2d9e commit c49ad4a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions django_app/redbox_app/redbox_core/views/document_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@
".tsv",
".xlsx",
".htm",
".bmp",
".jpeg",
".png",
".jpg",
]
MAX_FILE_SIZE = 209715200 # 200 MB or 200 * 1024 * 1024

Expand Down
1 change: 1 addition & 0 deletions redbox-core/redbox/loader/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def lazy_load(self, file_name: str, file_bytes: BytesIO) -> Iterator[Document]:
url,
files=files,
data={
"strategy": "fast",
"chunking_strategy": "by_title",
"max_characters": self._max_chunk_size,
"combine_under_n_chars": self._min_chunk_size,
Expand Down

0 comments on commit c49ad4a

Please sign in to comment.