Luigi commited on
Commit
af2d743
·
1 Parent(s): da07fc5

Update Whisper: use 'small' model with auto language detection

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -111,10 +111,10 @@ def transcribe_audio_whisper(audio_file):
111
 
112
  try:
113
  # Load Whisper model (will be done on GPU)
114
- model = whisper.load_model("base")
115
 
116
  # Transcribe the audio
117
- result = model.transcribe(audio_file, language="en")
118
 
119
  return result["text"].strip()
120
 
 
111
 
112
  try:
113
  # Load Whisper model (will be done on GPU)
114
+ model = whisper.load_model("small")
115
 
116
  # Transcribe the audio
117
+ result = model.transcribe(audio_file)
118
 
119
  return result["text"].strip()
120