cdleong commited on
Commit
1ffd672
·
1 Parent(s): c5d1b9b

basic upload wav file and play

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ if __name__ == "__main__":
4
+ uploaded_file = st.file_uploader("Choose a file")
5
+ with open(‘trans.mp3’, ‘rb’) as audio_file:
6
+ audio_bytes = audio_file.read()
7
+ st.audio(audio_bytes, format=‘audio/wav’)