From 4696aa1fed214fe1084d7c3deecaaa289bc0a1fd Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Mon, 31 Oct 2022 21:53:15 -0400 Subject: Update OBS, renamepublish and edit --- roles/caption/templates/process-captions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/caption/templates') diff --git a/roles/caption/templates/process-captions.py b/roles/caption/templates/process-captions.py index da99203..50c62d1 100755 --- a/roles/caption/templates/process-captions.py +++ b/roles/caption/templates/process-captions.py @@ -142,7 +142,7 @@ def generate_captions(work): result = clean_up_timestamps(result) with open(new_file, 'w') as vtt: whisper.utils.write_vtt(result['segments'], file=vtt) - with open(work['base'] + '.txt') + with open(work['base'] + '.txt'): whisper.utils.write_txt(result['segments'], file=txt) work['vtt'] = new_file if 'srv2' in work: del work['srv2'] -- cgit v1.2.3