Skip to content

Commit d3dbdc9

Browse files
committed
video path
1 parent 3a9404c commit d3dbdc9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/run_diarization.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def download_video():
1818
output_path = VIDEO_DIRECTORY / f"{file_name}.mp4"
1919

2020
video_url = "https://tulsa-ok.granicus.com/MediaPlayer.php?view_id=4&clip_id=6501"
21+
print(f"Downloading video from {video_url}")
2122
# Get video player page info
2223
player_page: GranicusPlayerPage = asyncio.run(get_video_player(video_url))
2324

@@ -28,10 +29,10 @@ def download_video():
2829
if video_file:
2930
print(f"Video saved to: {video_file}")
3031

32+
return video_file
3133

32-
def run_diarization():
33-
video_file = "data/video/regular_council_meeting___2025_02_26.mp4"
3434

35+
def run_diarization(video_file: Path):
3536
transcription_dir = Path("data/transcripts")
3637

3738
transcription = asyncio.run(
@@ -41,5 +42,5 @@ def run_diarization():
4142

4243

4344
if __name__ == "__main__":
44-
download_video()
45-
run_diarization()
45+
video_file = download_video()
46+
run_diarization(video_file)

0 commit comments

Comments
 (0)