Update subgen.py

This commit is contained in:
McCloudS
2024-02-19 23:12:30 -07:00
committed by GitHub
parent 7ebbf47cc9
commit 7e9b87c800

View File

@@ -83,7 +83,8 @@ def appendLine(result):
lastSegment.id += 1
lastSegment.start += TIME_OFFSET
lastSegment.end += TIME_OFFSET
lastSegment.text = f"Transcribed by whisperAI with faster-whisper ({whisper_model}) on {datetime.now()}"
date_time_str = datetime.now().strftime("%d %B %Y %H:%M:%S")
lastSegment.text = f"Transcribed by whisperAI with faster-whisper ({whisper_model}) on {date_time_str}"
lastSegment.words = []
# lastSegment.words[0].word = lastSegment.text
# lastSegment.words = lastSegment.words[:len(lastSegment.words)-1]