From 6c8c625ce102ba953250deeed30cb32515bb3db3 Mon Sep 17 00:00:00 2001 From: Christoph Auer Date: Tue, 17 Dec 2024 14:30:13 +0100 Subject: [PATCH] Roll back CLI changes from main Signed-off-by: Christoph Auer --- docling/cli/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docling/cli/main.py b/docling/cli/main.py index 8d8fc83c..a83aecbf 100644 --- a/docling/cli/main.py +++ b/docling/cli/main.py @@ -252,10 +252,6 @@ def convert( help="Show version information.", ), ] = None, - num_threads: Annotated[int, typer.Option(..., help="Number of threads")] = 4, - device: Annotated[ - AcceleratorDevice, typer.Option(..., help="Accelerator device") - ] = AcceleratorDevice.AUTO, document_timeout: Annotated[ Optional[float], typer.Option( @@ -263,6 +259,10 @@ def convert( help="The timeout for processing each document, in seconds.", ), ] = None, + num_threads: Annotated[int, typer.Option(..., help="Number of threads")] = 4, + device: Annotated[ + AcceleratorDevice, typer.Option(..., help="Accelerator device") + ] = AcceleratorDevice.AUTO, ): if verbose == 0: logging.basicConfig(level=logging.WARNING)