Skip to content

Commit

Permalink
something something Unit tests...
Browse files Browse the repository at this point in the history
  • Loading branch information
rmusser01 committed May 11, 2024
1 parent 24c41c2 commit d03f99d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions summarize.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,8 @@ def download_video(video_url, download_path, info_dict, download_video_flag):
def convert_to_wav(video_file_path, offset=0):
print("Starting conversion process of .m4a to .WAV")
out_path = os.path.splitext(video_file_path)[0] + ".wav"

logging.debug("ffmpeg: about to check OS")

try:
if os.name == "nt":
logging.debug("ffmpeg being ran on windows")
Expand Down Expand Up @@ -1307,7 +1308,7 @@ def main(input_path, api_name=None, api_key=None, num_speakers=2, whisper_model=
logging.info(f"Transcription complete: {audio_file}")

# Perform summarization based on the specified API
if api_name and api_key:
if api_name:
logging.debug(f"MAIN: Summarization being performed by {api_name}")
json_file_path = audio_file.replace('.wav', '.segments.json')
if api_name.lower() == 'openai':
Expand Down

0 comments on commit d03f99d

Please sign in to comment.