minor refactor

Signed-off-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com>
This commit is contained in:
Panos Vagenas 2025-02-06 14:29:58 +01:00
parent 3af9b9d34e
commit b817b7eb2b
5 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ from rich.console import Console
from rich.logging import RichHandler
from docling.datamodel.settings import settings
from docling.utils.models_downloader import download_models
from docling.utils.model_downloader import download_models
warnings.filterwarnings(action="ignore", category=UserWarning, module="pydantic|torch")
warnings.filterwarnings(action="ignore", category=FutureWarning, module="easyocr")

View File

@ -1,6 +1,6 @@
import typer
from docling.cli.models_download import app as models_app
from docling.cli.models import app as models_app
app = typer.Typer(
name="Docling helpers",

View File

@ -39,7 +39,7 @@ from docling.models.table_structure_model import TableStructureModel
from docling.models.tesseract_ocr_cli_model import TesseractOcrCliModel
from docling.models.tesseract_ocr_model import TesseractOcrModel
from docling.pipeline.base_pipeline import PaginatedPipeline
from docling.utils.models_downloader import download_models
from docling.utils.model_downloader import download_models
from docling.utils.profiling import ProfilingScope, TimeRecorder
_log = logging.getLogger(__name__)

View File

@ -46,7 +46,7 @@ Downloading easyocr models...
Models downloaded into $HOME/.cache/docling/models.
```
Alternatively, models can be programmatically downloaded using `docling.utils.models_downloader.download_models()`.
Alternatively, models can be programmatically downloaded using `docling.utils.model_downloader.download_models()`.
**Step 2: Use the prefetched models**