File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ def pipeline_api(
361
361
362
362
hi_res_model_name = _validate_hi_res_model_name (hi_res_model_name , coordinates )
363
363
strategy = _validate_strategy (strategy )
364
- pdf_infer_table_structure = _set_pdf_infer_table_structure (pdf_infer_table_structure , strategy )
364
+ # pdf_infer_table_structure = _set_pdf_infer_table_structure(pdf_infer_table_structure, strategy)
365
365
366
366
# Parallel mode is set by env variable
367
367
enable_parallel_mode = os .environ .get ("UNSTRUCTURED_PARALLEL_MODE_ENABLED" , "false" )
@@ -595,9 +595,9 @@ def _validate_chunking_strategy(chunking_strategy: Optional[str]) -> Optional[st
595
595
return chunking_strategy
596
596
597
597
598
- def _set_pdf_infer_table_structure (pdf_infer_table_structure : bool , strategy : str ) -> bool :
599
- """Avoids table inference in "fast" and "ocr_only" runs."""
600
- return strategy in ("hi_res" , "auto" ) and pdf_infer_table_structure
598
+ # def _set_pdf_infer_table_structure(pdf_infer_table_structure: bool, strategy: str) -> bool:
599
+ # """Avoids table inference in "fast" and "ocr_only" runs."""
600
+ # return strategy in ("hi_res", "auto") and pdf_infer_table_structure
601
601
602
602
603
603
def get_validated_mimetype (file : UploadFile ) -> Optional [str ]:
You can’t perform that action at this time.
0 commit comments