Update app.py
Browse files
app.py
CHANGED
|
@@ -54,7 +54,7 @@ def main():
|
|
| 54 |
# 5. Play audio automatically - Read the audio file and pass its content
|
| 55 |
with open(audio_file_path, "rb") as audio_file:
|
| 56 |
audio_data = audio_file.read()
|
| 57 |
-
st.audio(audio_data, format='audio/
|
| 58 |
|
| 59 |
# Optionally, delete the audio file after playing
|
| 60 |
# os.remove(audio_file_path)
|
|
|
|
| 54 |
# 5. Play audio automatically - Read the audio file and pass its content
|
| 55 |
with open(audio_file_path, "rb") as audio_file:
|
| 56 |
audio_data = audio_file.read()
|
| 57 |
+
st.audio(audio_data, format='audio/mpeg', start_time=0)
|
| 58 |
|
| 59 |
# Optionally, delete the audio file after playing
|
| 60 |
# os.remove(audio_file_path)
|