Why st.audio( ) is not work in cloud , while is ok on local

" ‘…’, format=“audio/wav”, loop=False, autoplay=False)

File “/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/metrics_util.py”, line 397, in wrapped_func
result = non_optional_func(*args, **kwargs)

  • What exactly is “not work”? This is not a sufficient error description. Provide an error message or description.
  • Please share a link to your public github repo.

this is the link:
https://wyt-bigdata.streamlit.app/

GitHub url: https://github.com/wyt3721/seismic_data_analysis/blob/main/app.py

And the same codes works well on local.I don’t know the reason.

FYI

This is because you have streamlit 1.33 in your requirements.txt, but that version does not have an autoplay argument: st.audio - Streamlit Docs

You must be using 1.34 locally.

If you update requirements.txt to have streamlit 1.34, it should be fixed.

1 Like

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