mirror of
https://github.com/Dasemu/Transcriptarr.git
synced 2026-11-27 23:46:08 +00:00
Update subgen.py
This commit is contained in:
1 parent
7ebbf47cc9
commit
7e9b87c800
1 file changed
+2
-1
+2
-1
@@ -83,7 +83,8 @@ def appendLine(result):
|
|||||||
lastSegment.id += 1
|
lastSegment.id += 1
|
||||||
lastSegment.start += TIME_OFFSET
|
lastSegment.start += TIME_OFFSET
|
||||||
lastSegment.end += 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 = []
|
||||||
# lastSegment.words[0].word = lastSegment.text
|
# lastSegment.words[0].word = lastSegment.text
|
||||||
# lastSegment.words = lastSegment.words[:len(lastSegment.words)-1]
|
# lastSegment.words = lastSegment.words[:len(lastSegment.words)-1]
|
||||||
|
|||||||
Reference in new issue
Block a user