Skip to content

Commit

Permalink
Update src/tokenizers.js
Browse files Browse the repository at this point in the history
Co-authored-by: Joshua Lochner <[email protected]>
  • Loading branch information
aravindMahadevan and xenova authored Jun 11, 2024
1 parent 58b8346 commit 7d0cdbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tokenizers.js
Original file line number Diff line number Diff line change
Expand Up @@ -3610,7 +3610,7 @@ export class WhisperTokenizer extends PreTrainedTokenizer {
let chunk = new_chunk();
let time_offset = 0.0;
const timestamp_begin = this.model.convert_tokens_to_ids(["<|notimestamps|>"])[0] + 1;
const timestamp_end = this.model.convert_tokens_to_ids(["<|30.00|>"]);
const timestamp_end = this.model.convert_tokens_to_ids(["<|30.00|>"])[0];

let previous_tokens = [];
let previous_token_timestamps = [];
Expand Down

0 comments on commit 7d0cdbf

Please sign in to comment.