Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -354,7 +354,8 @@ with gr.Blocks(theme='rawrsor1/Everforest') as demo:
|
|
| 354 |
with gr.Column():
|
| 355 |
gr.Markdown("Listen the audio")
|
| 356 |
audio_output = gr.Audio()
|
| 357 |
-
bot_msg.then(generate_audio_elevenlabs, chatbot, audio_output)
|
|
|
|
| 358 |
# with gr.Column():
|
| 359 |
# news_output = gr.HTML(value=fetch_local_events())
|
| 360 |
|
|
|
|
| 354 |
with gr.Column():
|
| 355 |
gr.Markdown("Listen the audio")
|
| 356 |
audio_output = gr.Audio()
|
| 357 |
+
#bot_msg.then(generate_audio_elevenlabs, chatbot, audio_output)
|
| 358 |
+
bot_msg_audio = bot_msg.then(lambda history: generate_audio_elevenlabs(history[-1][1]), chatbot, audio_output)
|
| 359 |
# with gr.Column():
|
| 360 |
# news_output = gr.HTML(value=fetch_local_events())
|
| 361 |
|