Skip to content

Commit

Permalink
Update pyai.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchellShibilski-Unkel committed Mar 29, 2024
1 parent 0df64ab commit 4fc4e8d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pyai.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ def getTextFromAudio(self, audio):
mel = whisper.log_mel_spectrogram(audio).to(self.model.device)

_, probs = self.model.detect_language(mel)
print(f"Detected language: {max(probs, key=probs.get)}")

options = whisper.DecodingOptions()
result = whisper.decode(self.model, mel, options)
Expand Down

0 comments on commit 4fc4e8d

Please sign in to comment.