Roll back CLI changes from main

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
This commit is contained in:
Christoph Auer 2024-12-17 14:30:13 +01:00
parent 8f09fcdf59
commit 6c8c625ce1

View File

@ -252,10 +252,6 @@ def convert(
help="Show version information.", help="Show version information.",
), ),
] = None, ] = 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[ document_timeout: Annotated[
Optional[float], Optional[float],
typer.Option( typer.Option(
@ -263,6 +259,10 @@ def convert(
help="The timeout for processing each document, in seconds.", help="The timeout for processing each document, in seconds.",
), ),
] = None, ] = 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: if verbose == 0:
logging.basicConfig(level=logging.WARNING) logging.basicConfig(level=logging.WARNING)