Open mohammedi-haroune opened 3 years ago
Here's the full logs: vosk_bug.log
What happens if you run this in Streamlit locally, i.e. just on your laptop say?
And I presume if you use the right path the app works fine?
What happens if you run this in Streamlit locally, i.e. just on your laptop say?
The app logs the error and exit.
> streamlit run streamlit_app-wrong-input-path.py
You can now view your Streamlit app in your browser.
Network URL: http://10.4.1.17:8501
External URL: http://34.123.120.237:8501
LOG (VoskAPI:ReadDataFiles():model.cc:194) Decoding params beam=13 max-active=7000 lattice-beam=6
LOG (VoskAPI:ReadDataFiles():model.cc:197) Silence phones 1:2:3:4:5:6:7:8:9:10
ERROR (VoskAPI:ReadConfigFile():parse-options.cc:462) Cannot open config file: /tmp/vosk-model-ar-mgb2-0.4/mfcc.conf
terminate called after throwing an instance of 'kaldi::KaldiFatalError'
what(): kaldi::KaldiFatalError
Aborted
And I presume if you use the right path the app works fine?
Yes.
Describe the bug
I noticed a bug when using cdsdashboards in our ML platform https://iko.ai
OSError: [Errno 99] Cannot assign requested address
is returned both in the browser and the logs if the path is wrong invosk.Model(path)
in a streamlit appIt first shows the right error:
Then it keeps showing this weird error both in the browser and the logs
Also, this happened only once, the streamlit UI opened and keeps rerunning the app forever and show an error pop every now and then. I couldn't take a screenshot of the error in the streamlit UI because it was too fast.
To Reproduce
pip install vosk
model = Model('wrong/path/')