Spaces:
Runtime error
Runtime error
fix auto detect lang not working
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def transcribe(audio, state={}, delay=1.2, lang=None, translate=False):
|
|
12 |
|
13 |
transcription = model.transcribe(
|
14 |
audio,
|
15 |
-
language = lang if lang !=
|
16 |
)
|
17 |
state['transcription'] += transcription['text'] + " "
|
18 |
|
|
|
12 |
|
13 |
transcription = model.transcribe(
|
14 |
audio,
|
15 |
+
language = lang if lang != AUTO_DETECT_LANG else None
|
16 |
)
|
17 |
state['transcription'] += transcription['text'] + " "
|
18 |
|