SaileshSivan commited on
Commit
75a66c3
·
1 Parent(s): a2a550a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -97,6 +97,10 @@ if submit:
97
  # Embed audio in the webpage without saving it
98
  st.audio(audio_response.content,format="audio/wav")
99
 
 
 
 
 
100
 
101
 
102
 
 
97
  # Embed audio in the webpage without saving it
98
  st.audio(audio_response.content,format="audio/wav")
99
 
100
+ # Add a hidden download link for the audio
101
+ download_link = f'<a href="data:audio/wav;base64,{audio_response.content.decode()}" download="custom_filename.wav" style="display:none;">Download Audio</a>'
102
+ st.markdown(download_link, unsafe_allow_html=True)
103
+
104
 
105
 
106