Spaces:
Sleeping
Sleeping
Commit
·
852f888
1
Parent(s):
0c49906
Update app.py
Browse files
app.py
CHANGED
|
@@ -94,11 +94,9 @@ if submit:
|
|
| 94 |
)
|
| 95 |
|
| 96 |
# Embed audio in the webpage without saving it
|
| 97 |
-
st.audio(audio_response.content,
|
|
|
|
| 98 |
|
| 99 |
-
# Add a download link for the audio
|
| 100 |
-
download_link = f'<a href="data:audio/mp3;base64,{audio_response.content.decode()}" download="AI.mp3">Download Audio</a>'
|
| 101 |
-
st.markdown(download_link, unsafe_allow_html=True)
|
| 102 |
|
| 103 |
|
| 104 |
|
|
|
|
| 94 |
)
|
| 95 |
|
| 96 |
# Embed audio in the webpage without saving it
|
| 97 |
+
st.audio(audio_response.content,format="audio/wav")
|
| 98 |
+
|
| 99 |
|
|
|
|
|
|
|
|
|
|
| 100 |
|
| 101 |
|
| 102 |
|