Spaces:
Runtime error
Runtime error
basic upload wav file and play
Browse files
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’)
|