marquesafonso commited on
Commit
d6fce51
·
1 Parent(s): d7fa99f

move config to variables and secrets (2)

Browse files
Files changed (1) hide show
  1. utils/process_video.py +2 -3
utils/process_video.py CHANGED
@@ -10,8 +10,7 @@ def process_video(invideo_file: str,
10
  font:str,
11
  bg_color:str,
12
  text_color:str,
13
- caption_mode:str,
14
- config_file:str
15
  ):
16
  invideo_path_parts = os.path.normpath(invideo_file).split(os.path.sep)
17
  VIDEO_NAME = os.path.basename(invideo_file)
@@ -21,7 +20,7 @@ def process_video(invideo_file: str,
21
  subtitler(invideo_file, srt_file, OUTVIDEO_PATH, fontsize, font, bg_color, text_color, caption_mode)
22
  else:
23
  srt_file = os.path.normpath(f"{invideo_file.split('.')[0]}.srt")
24
- transcriber(invideo_file, srt_file, max_words_per_line, task, config_file)
25
  logging.info("Subtitling...")
26
  subtitler(invideo_file, srt_file, OUTVIDEO_PATH, fontsize, font, bg_color, text_color, caption_mode)
27
  return OUTVIDEO_PATH, srt_file
 
10
  font:str,
11
  bg_color:str,
12
  text_color:str,
13
+ caption_mode:str
 
14
  ):
15
  invideo_path_parts = os.path.normpath(invideo_file).split(os.path.sep)
16
  VIDEO_NAME = os.path.basename(invideo_file)
 
20
  subtitler(invideo_file, srt_file, OUTVIDEO_PATH, fontsize, font, bg_color, text_color, caption_mode)
21
  else:
22
  srt_file = os.path.normpath(f"{invideo_file.split('.')[0]}.srt")
23
+ transcriber(invideo_file, srt_file, max_words_per_line, task)
24
  logging.info("Subtitling...")
25
  subtitler(invideo_file, srt_file, OUTVIDEO_PATH, fontsize, font, bg_color, text_color, caption_mode)
26
  return OUTVIDEO_PATH, srt_file