Skip to content

Commit a14c8de

Browse files
committed
output dir
1 parent 86529df commit a14c8de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/videos.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ async def transcribe_video_with_diarization(
174174
logger.info(f"Transcribing video with speaker diarization: {video_path}")
175175
start_time = time.time()
176176

177+
# Create output directory if it doesn't exist
178+
output_path.mkdir(parents=True, exist_ok=True)
179+
177180
# Get the output path for the transcription
178181
transcription_path = get_output_path(video_path, output_path, ext="diarized.json")
179182

0 commit comments

Comments
 (0)