SaileshSivan commited on
Commit
c6e260d
·
1 Parent(s): 89c7f6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -93,7 +93,10 @@ if submit:
93
  )
94
 
95
  # Embed audio in the webpage without saving it
96
- st.audio(audio_response.content, format="audio/mp3",start_time=0, autoplay=True)
 
 
 
97
 
98
 
99
 
 
93
  )
94
 
95
  # Embed audio in the webpage without saving it
96
+ # st.audio(audio_response.content, format="audio/mp3")
97
+
98
+ audio_url = f"data:audio/mp3;base64,{base64.b64encode(audio_response.content).decode()}"
99
+ st.audio(audio_url, format="audio/mp3", start_time=0, autoplay=True)
100
 
101
 
102