Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -320,7 +320,7 @@ def transcribe_audio(audio_file_path, model, prompt, language, auto_detect_langu
|
|
320 |
language=None if auto_detect_language else language,
|
321 |
temperature=0.0,
|
322 |
)
|
323 |
-
return transcription
|
324 |
except groq.RateLimitError as e: # Handle rate limit error
|
325 |
handle_groq_error(e, model)
|
326 |
|
|
|
320 |
language=None if auto_detect_language else language,
|
321 |
temperature=0.0,
|
322 |
)
|
323 |
+
return transcription, None
|
324 |
except groq.RateLimitError as e: # Handle rate limit error
|
325 |
handle_groq_error(e, model)
|
326 |
|