Spaces:
Runtime error
Runtime error
Commit ·
f3a3a4e
1
Parent(s): da73807
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ def transcribe(audio):
|
|
| 17 |
mel = whisper.log_mel_spectrogram(audio).to(transcription_model.device)
|
| 18 |
|
| 19 |
# detect the spoken language
|
| 20 |
-
_, probs = transcription_model.detect_language(mel)
|
| 21 |
# print(f"Detected language: {max(probs, key=probs.get)}")
|
| 22 |
|
| 23 |
# decode the audio
|
|
|
|
| 17 |
mel = whisper.log_mel_spectrogram(audio).to(transcription_model.device)
|
| 18 |
|
| 19 |
# detect the spoken language
|
| 20 |
+
# _, probs = transcription_model.detect_language(mel)
|
| 21 |
# print(f"Detected language: {max(probs, key=probs.get)}")
|
| 22 |
|
| 23 |
# decode the audio
|