Skip to content

Commit c60f65d

Browse files
author
Paddle CI
committed
fix yapf
1 parent ae98cc8 commit c60f65d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

paddlespeech/s2t/models/whisper/decoding.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -715,8 +715,9 @@ def run(self, mel: paddle.Tensor) -> List[DecodingResult]:
715715
DecodingResult(
716716
audio_features=features,
717717
language=language,
718-
language_probs=probs) for features, language, probs in
719-
zip(audio_features, languages, language_probs)
718+
language_probs=probs)
719+
for features, language, probs in zip(audio_features, languages,
720+
language_probs)
720721
]
721722

722723
# repeat the audio & text tensors by the group size, for beam search or best-of-n sampling
@@ -768,8 +769,9 @@ def run(self, mel: paddle.Tensor) -> List[DecodingResult]:
768769
avg_logprob=avg_logprob,
769770
no_speech_prob=no_speech_prob,
770771
temperature=self.options.temperature,
771-
compression_ratio=compression_ratio(text), ) for text, language,
772-
tokens, features, avg_logprob, no_speech_prob in zip(*fields)
772+
compression_ratio=compression_ratio(text), )
773+
for text, language, tokens, features, avg_logprob, no_speech_prob in
774+
zip(*fields)
773775
]
774776

775777

0 commit comments

Comments
 (0)