commit 591df1f4a96cfb144887b191d452d2e282cf9740
parent 4b081c3aad37fcd6a19f3f5858a38e83eddf39bd
Author: MTRNord <mtrnord1@gmail.com>
Date: Fri, 23 Feb 2024 12:53:01 +0100
Fix typo
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/transcribe.py b/transcribe.py
@@ -306,10 +306,12 @@ def transcribe_audio_files(files_directory: str, model: str, threads: int) -> No
def backup_file(
input_file: Path, normalized_file: Path, backup_directory: Path
) -> None:
- shutil.move(input_file, f"{backup_directory}/input/{input_file}")
+ shutil.move(input_file, f"{backup_directory}/input/{input_file.name}")
logging.info(f"Moved input file {input_file} to backup directory")
- shutil.move(normalized_file, f"{backup_directory}/normalized/{normalized_file}")
+ shutil.move(
+ normalized_file, f"{backup_directory}/normalized/{normalized_file.name}"
+ )
logging.info(f"Moved normalized file {normalized_file} to backup directory")