Update subgen.py

Fixed error/logging issue.
This commit is contained in:
McCloudS
2023-11-11 09:16:16 -07:00
committed by GitHub
parent 94a254996c
commit 7ae5f72d5d

View File

@@ -300,7 +300,7 @@ def gen_subtitles(file_path: str, transcribe_or_translate_str: str, front=True)
print(f"File {os.path.basename(file_path)} is already in the transcription list. Skipping.") print(f"File {os.path.basename(file_path)} is already in the transcription list. Skipping.")
except Exception as e: except Exception as e:
print(f"Error processing or transcribing {video_file_path}: {e}") print(f"Error processing or transcribing {file_path}: {e}")
finally: finally:
delete_model() delete_model()