From f17639a63728a35a2a76c82fbde3d556056eec3a Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 23 Aug 2023 15:07:48 +0200 Subject: [PATCH] Change argument name for transcription --- verbanote/process.py | 2 +- verbanote/rp_handler.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/verbanote/process.py b/verbanote/process.py index 703c037..5de8954 100644 --- a/verbanote/process.py +++ b/verbanote/process.py @@ -28,7 +28,7 @@ def diarize(audiofile: Path, pipeline: Pipeline, output_path: Path) -> Path: def transcribe( model: Whisper, diarized_groups: list, - output_path: Path, + files_path: Path, lang: str = "en", word_timestamps: bool = True, ) -> None: diff --git a/verbanote/rp_handler.py b/verbanote/rp_handler.py index e957e10..d98e0af 100644 --- a/verbanote/rp_handler.py +++ b/verbanote/rp_handler.py @@ -41,7 +41,7 @@ def handler(job): process.transcribe( model=whisper_model, diarized_groups=diarized_groups, - output_path=output_path, + files_path=output_path, lang=lang or "fr", word_timestamps=word_timestamps or True, )