Skip to content

Commit d1dbd5a

Browse files
committed
try smoketest fix
1 parent 84dcf95 commit d1dbd5a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

prepline_general/api/general.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def pipeline_api(
361361

362362
hi_res_model_name = _validate_hi_res_model_name(hi_res_model_name, coordinates)
363363
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)
365365

366366
# Parallel mode is set by env variable
367367
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
595595
return chunking_strategy
596596

597597

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
601601

602602

603603
def get_validated_mimetype(file: UploadFile) -> Optional[str]:

0 commit comments

Comments
 (0)