phonemize-audio / app.py
cdleong's picture
audio_bytes should be uploaded_file.getvalue()
6a5f5ff
raw history blame
No virus
260 Bytes
import streamlit as st
if __name__ == "__main__":
uploaded_file = st.file_uploader("Choose a file")
if uploaded_file is not None:
audio_bytes = uploaded_file.getvalue()
# audio_bytes = audio_file.read()
st.audio(audio_bytes, format='audio/wav')