Update functions.py
Browse files- functions.py +2 -2
functions.py
CHANGED
@@ -370,8 +370,8 @@ def inference(link, upload, _asr_model):
|
|
370 |
|
371 |
except Exception as e:
|
372 |
|
373 |
-
st.
|
374 |
-
Using Whisper module from GitHub, might take longer than expected''',icon="
|
375 |
|
376 |
results = _asr_model.transcribe(st.session_state['audio'], task='transcribe', language='en')
|
377 |
|
|
|
370 |
|
371 |
except Exception as e:
|
372 |
|
373 |
+
st.error(f'''Whisper API Error: {e},
|
374 |
+
Using Whisper module from GitHub, might take longer than expected''',icon="🚨")
|
375 |
|
376 |
results = _asr_model.transcribe(st.session_state['audio'], task='transcribe', language='en')
|
377 |
|