Spaces:
Sleeping
Sleeping
Commit
·
71041ef
1
Parent(s):
d296b0e
Update app.py
Browse files
app.py
CHANGED
|
@@ -92,11 +92,10 @@ if submit:
|
|
| 92 |
input=response
|
| 93 |
)
|
| 94 |
|
| 95 |
-
#
|
| 96 |
-
|
|
|
|
| 97 |
|
| 98 |
-
# Embed audio in the webpage
|
| 99 |
-
st.audio(audio_url, format="audio/mp3")
|
| 100 |
|
| 101 |
else:
|
| 102 |
st.subheader("Error: Unable to get response. Please try again later.")
|
|
|
|
| 92 |
input=response
|
| 93 |
)
|
| 94 |
|
| 95 |
+
# Embed audio in the webpage without saving it
|
| 96 |
+
st.audio(audio_response.content, format="audio/mp3")
|
| 97 |
+
|
| 98 |
|
|
|
|
|
|
|
| 99 |
|
| 100 |
else:
|
| 101 |
st.subheader("Error: Unable to get response. Please try again later.")
|