Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -508,11 +508,11 @@ with gr.Blocks(theme='rawrsor1/Everforest') as demo:
|
|
508 |
|
509 |
|
510 |
|
511 |
-
|
512 |
-
|
513 |
|
514 |
-
|
515 |
-
|
516 |
|
517 |
def setup_ui():
|
518 |
state = gr.State()
|
@@ -551,10 +551,10 @@ with gr.Blocks(theme='rawrsor1/Everforest') as demo:
|
|
551 |
audio_output = gr.Audio()
|
552 |
#bot_msg.then(generate_audio_elevenlabs, chatbot, audio_output)
|
553 |
bot_msg_audio = bot_msg.then(lambda history: generate_audio_elevenlabs(history[-1][1]), chatbot, audio_output)
|
554 |
-
|
555 |
-
|
556 |
|
557 |
-
|
558 |
|
559 |
setup_ui()
|
560 |
|
|
|
508 |
|
509 |
|
510 |
|
511 |
+
with gr.Column():
|
512 |
+
weather_output = gr.HTML(value=fetch_local_weather())
|
513 |
|
514 |
+
with gr.Column():
|
515 |
+
news_output = gr.HTML(value=fetch_local_news())
|
516 |
|
517 |
def setup_ui():
|
518 |
state = gr.State()
|
|
|
551 |
audio_output = gr.Audio()
|
552 |
#bot_msg.then(generate_audio_elevenlabs, chatbot, audio_output)
|
553 |
bot_msg_audio = bot_msg.then(lambda history: generate_audio_elevenlabs(history[-1][1]), chatbot, audio_output)
|
554 |
+
with gr.Column():
|
555 |
+
gr.Markdown("<h1>Local Events</h1>", elem_id="events-markdown")
|
556 |
|
557 |
+
news_output = gr.HTML(value=fetch_local_events())
|
558 |
|
559 |
setup_ui()
|
560 |
|