Skip to content

Commit

Permalink
Update subgen.py
Browse files Browse the repository at this point in the history
  • Loading branch information
McCloudS authored Feb 20, 2024
1 parent 7ebbf47 commit 7e9b87c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion subgen/subgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 7e9b87c

Please sign in to comment.