Skip to content

Commit 668dd01

Browse files
authored
remove unnecessary warning log (#2978)
The warning log about default model not set is no longer needed. This PR removes this log to reduce confusion.
1 parent 4397dd6 commit 668dd01

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
* **`partition_docx()` handles short table rows.** The DOCX format allows a table row to start late and/or end early, meaning cells at the beginning or end of a row can be omitted. While there are legitimate uses for this capability, using it in practice is relatively rare. However, it can happen unintentionally when adjusting cell borders with the mouse. Accommodate this case and generate accurate `.text` and `.metadata.text_as_html` for these tables.
1616
* **Remedy macOS test failure not triggered by CI.** Generalize temp-file detection beyond hard-coded Linux-specific prefix.
17+
* **Remove unnecessary warning log for using default layout model.**
1718

1819
## 0.13.6
1920

unstructured/partition/pdf.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,6 @@ def default_hi_res_model() -> str:
108108
# the default hi res model name is done on importing of this submodule; this allows (if user
109109
# prefers) for setting env after importing the sub module and changing the default model name
110110

111-
# if tabler structure is needed we defaul to use yolox for better table detection
112-
logger.warning(
113-
"This function will be deprecated in a future release and `unstructured` will simply "
114-
"use the DEFAULT_MODEL from `unstructured_inference.model.base` to set default model "
115-
"name"
116-
)
117111
from unstructured_inference.models.base import DEFAULT_MODEL
118112

119113
return os.environ.get("UNSTRUCTURED_HI_RES_MODEL_NAME", DEFAULT_MODEL)

0 commit comments

Comments
 (0)