Skip to content

Commit

Permalink
rename initial_offset to initial_timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
MahmoudAshraf97 committed Dec 18, 2023
1 parent 9c0ab3c commit 3957238
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Whisper_Transcription_+_NeMo_Diarization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@
" )\n",
" word_timestamps = filter_missing_timestamps(\n",
" result_aligned[\"word_segments\"],\n",
" initial_offset=whisper_results[0].get(\"start\"),\n",
" initial_timestamp=whisper_results[0].get(\"start\"),\n",
" final_timestamp=whisper_results[-1].get(\"end\"),\n",
" )\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion diarize.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
)
word_timestamps = filter_missing_timestamps(
result_aligned["word_segments"],
initial_offset=whisper_results[0].get("start"),
initial_timestamp=whisper_results[0].get("start"),
final_timestamp=whisper_results[-1].get("end"),
)
# clear gpu vram
Expand Down
2 changes: 1 addition & 1 deletion diarize_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
)
word_timestamps = filter_missing_timestamps(
result_aligned["word_segments"],
initial_offset=whisper_results[0].get("start"),
initial_timestamp=whisper_results[0].get("start"),
final_timestamp=whisper_results[-1].get("end"),
)
# clear gpu vram
Expand Down

0 comments on commit 3957238

Please sign in to comment.