SaileshSivan commited on
Commit
71041ef
·
1 Parent(s): d296b0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -92,11 +92,10 @@ if submit:
92
  input=response
93
  )
94
 
95
- # Extract URL from binary response
96
- audio_url = base64.b64encode(audio_response.content).decode()
 
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.")