Module 'whisper' has no attribute 'load_model'

File “/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py”, line 565, in _run_script
exec(code, module.dict)

File “/app/whisper/speechapp.py”, line 19, in
model = whisper.load_model(“medium”)
AttributeError: module ‘whisper’ has no attribute ‘load_model’

Github Repo

I have solved this issue but new issue has arised
Error:
The service has encountered an error while checking the health of the Streamlit app: Get “http://localhost:8501/healthz”: read tcp 127.0.0.1:36920->127.0.0.1:8501: read: connection reset by peer

I guess streamlit cannot handle large file

How could we upload large model on streamlit cloud

You could use Git-LFS

Here is an example:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.