Skip to content

Commit ac3d095

Browse files
committed
don't run diarizartion if video did not download.
1 parent d3dbdc9 commit ac3d095

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/run_diarization.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,7 @@ def run_diarization(video_file: Path):
4343

4444
if __name__ == "__main__":
4545
video_file = download_video()
46-
run_diarization(video_file)
46+
if video_file:
47+
run_diarization(video_file)
48+
else:
49+
print("Video file not found")

0 commit comments

Comments
 (0)