Skip to content

Commit

Permalink
fix yapf
Browse files Browse the repository at this point in the history
  • Loading branch information
Paddle CI committed Nov 11, 2022
1 parent ae98cc8 commit c60f65d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions paddlespeech/s2t/models/whisper/decoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -715,8 +715,9 @@ def run(self, mel: paddle.Tensor) -> List[DecodingResult]:
DecodingResult(
audio_features=features,
language=language,
language_probs=probs) for features, language, probs in
zip(audio_features, languages, language_probs)
language_probs=probs)
for features, language, probs in zip(audio_features, languages,
language_probs)
]

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


Expand Down

0 comments on commit c60f65d

Please sign in to comment.