Skip to content

Commit

Permalink
Update whisper.cc (#1846)
Browse files Browse the repository at this point in the history
Added logits to WhisperGenerationResult
  • Loading branch information
sammygrey authored Feb 10, 2025
1 parent 8dee2a2 commit 6a3dc63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/cpp/whisper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ namespace ctranslate2 {
return "WhisperGenerationResult(sequences=" + std::string(py::repr(py::cast(result.sequences)))
+ ", sequences_ids=" + std::string(py::repr(py::cast(result.sequences_ids)))
+ ", scores=" + std::string(py::repr(py::cast(result.scores)))
+ ", logits=" + std::string(py::repr(py::cast(result.logits)))
+ ", no_speech_prob=" + std::string(py::repr(py::cast(result.no_speech_prob)))
+ ")";
})
Expand Down

0 comments on commit 6a3dc63

Please sign in to comment.