SaileshSivan commited on
Commit
f9c0cce
·
1 Parent(s): 33dd9cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -96,15 +96,7 @@ if submit:
96
 
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
- base64_audio = base64.b64encode(audio_response.content).decode()
102
- download_link = f'<a href="data:audio/wav;base64,{base64_audio}" download="custom_filename.wav" style="display:none;">Download Audio</a>'
103
- st.markdown(download_link, unsafe_allow_html=True)
104
-
105
-
106
-
107
-
108
 
109
  else:
110
  st.subheader("Error: Unable to get response. Please try again later.")
 
96
 
97
  # Embed audio in the webpage without saving it
98
  st.audio(audio_response.content,format="audio/wav")
99
+
 
 
 
 
 
 
 
 
100
 
101
  else:
102
  st.subheader("Error: Unable to get response. Please try again later.")