mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-11-02 11:03:38 +00:00
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.
This commit is contained in:
parent
4397dd6a10
commit
668dd0122f
@ -14,6 +14,7 @@
|
||||
|
||||
* **`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.
|
||||
* **Remedy macOS test failure not triggered by CI.** Generalize temp-file detection beyond hard-coded Linux-specific prefix.
|
||||
* **Remove unnecessary warning log for using default layout model.**
|
||||
|
||||
## 0.13.6
|
||||
|
||||
|
||||
@ -108,12 +108,6 @@ def default_hi_res_model() -> str:
|
||||
# the default hi res model name is done on importing of this submodule; this allows (if user
|
||||
# prefers) for setting env after importing the sub module and changing the default model name
|
||||
|
||||
# if tabler structure is needed we defaul to use yolox for better table detection
|
||||
logger.warning(
|
||||
"This function will be deprecated in a future release and `unstructured` will simply "
|
||||
"use the DEFAULT_MODEL from `unstructured_inference.model.base` to set default model "
|
||||
"name"
|
||||
)
|
||||
from unstructured_inference.models.base import DEFAULT_MODEL
|
||||
|
||||
return os.environ.get("UNSTRUCTURED_HI_RES_MODEL_NAME", DEFAULT_MODEL)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user