From 408b03ebbcdcc02176a8ddd9ceb6b90e1034cc9f Mon Sep 17 00:00:00 2001 From: Peter Staar Date: Fri, 20 Jun 2025 05:06:37 +0200 Subject: [PATCH] updated comment Signed-off-by: Peter Staar --- docling/datamodel/pipeline_options.py | 3 ++- docling/pipeline/asr_pipeline.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docling/datamodel/pipeline_options.py b/docling/datamodel/pipeline_options.py index 19cda9d2..61120dcf 100644 --- a/docling/datamodel/pipeline_options.py +++ b/docling/datamodel/pipeline_options.py @@ -11,9 +11,10 @@ from pydantic import ( ) from typing_extensions import deprecated +from docling.datamodel import asr_model_specs + # Import the following for backwards compatibility from docling.datamodel.accelerator_options import AcceleratorDevice, AcceleratorOptions -from docling.datamodel import asr_model_specs from docling.datamodel.pipeline_options_asr_model import ( InlineAsrOptions, ) diff --git a/docling/pipeline/asr_pipeline.py b/docling/pipeline/asr_pipeline.py index 3c213cce..c23c4754 100644 --- a/docling/pipeline/asr_pipeline.py +++ b/docling/pipeline/asr_pipeline.py @@ -113,7 +113,7 @@ class _NativeWhisperModel: import whisper # type: ignore except ImportError: raise ImportError( - "whisper is not installed. Please install it via `pip install openai-whisper`." + "whisper is not installed. Please install it via `pip install openai-whisper` or do `uv sync --extra asr`." ) self.asr_options = asr_options self.max_tokens = asr_options.max_new_tokens