Spaces:
Paused
Paused
Update Whisper: use 'small' model with auto language detection
Browse files
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("
|
| 115 |
|
| 116 |
# Transcribe the audio
|
| 117 |
-
result = model.transcribe(audio_file
|
| 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 |
|