I’m encountering an issue with st.audio when trying to load existing MP3 files. Everything works perfectly in my local environment, but after deploying, the audio player often fails to load—showing 0:00 / 0:00 and not playing anything.
I’ve tried two approaches:
Fetching MP3 files from S3.
Bundling the audio files locally with the app code.
Unfortunately, the issue persists in both cases. Has anyone else run into this problem and found a reliable solution? Any tips would be greatly appreciated!
import streamlit as st
st.audio("scenario_4a7e47c4.mp3", format="audio/mpeg")