Spaces:
Runtime error
Runtime error
audio_bytes should be uploaded_file.getvalue()
Browse files
app.py
CHANGED
|
@@ -3,6 +3,6 @@ import streamlit as st
|
|
| 3 |
if __name__ == "__main__":
|
| 4 |
uploaded_file = st.file_uploader("Choose a file")
|
| 5 |
if uploaded_file is not None:
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
| 3 |
if __name__ == "__main__":
|
| 4 |
uploaded_file = st.file_uploader("Choose a file")
|
| 5 |
if uploaded_file is not None:
|
| 6 |
+
audio_bytes = uploaded_file.getvalue()
|
| 7 |
+
# audio_bytes = audio_file.read()
|
| 8 |
+
st.audio(audio_bytes, format='audio/wav')
|