Skip to content

Commit 716a2c8

Browse files
committed
Added `` around variables, rewording
1 parent 588a62f commit 716a2c8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/transformers/models/whisper/generation_whisper.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -484,10 +484,10 @@ def generate(
484484
Whether to force a unique call to the underlying GenerationMixin's [`~generation.GenerationMixin.generate`] method. This is useful for assisted decoding and testing purposes to ensure
485485
that only one call to [`~generation.GenerationMixin.generate`] is made and therefore decoder input token ids and eos token ids are returned.
486486
monitor_progress (`Callable[[torch.Tensor], None]`, *optional*):
487-
If provided, this function is called to report the progress of the audio transcription. The function
488-
takes one tensor argument p of shape (n, 2), where n is the batch size. p[i, 0] contains the
489-
index of the audio frame that is currently being transcribed for batch item i. p[i, 1] contains
490-
the total number of frames for batch item i. No return value is expected.
487+
If provided, this function can be called to report the progress of the audio transcription. The function
488+
takes a tensor argument `p` of shape `(n, 2)`, where `n` is the batch size. `p[i, 0]` contains the
489+
index of the audio frame that is currently being transcribed for batch item `i`. `p[i, 1]` contains
490+
the total number of frames for batch item `i`. No return value is expected.
491491
kwargs (`Dict[str, Any]`, *optional*):
492492
Ad hoc parametrization of `generate_config` and/or additional model-specific kwargs that will be
493493
forwarded to the `forward` function of the model. If the model is an encoder-decoder model, encoder

0 commit comments

Comments
 (0)