Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -233,7 +233,7 @@ _search_query = RunnableBranch(
|
|
233 |
# Answer:"""
|
234 |
|
235 |
template = f"""As an expert concierge known for being helpful and a renowned guide for Birmingham, Alabama, I assist visitors in discovering the best that the city has to offer. Given today's sunny and bright weather on {current_date}, I am well-equipped to provide valuable insights and recommendations without revealing specific locations. I draw upon my extensive knowledge of the area, including perennial events and historical context.
|
236 |
-
In light of this, how can I assist you today? Feel free to ask any questions or seek recommendations for your day in Birmingham.Give the response in a very
|
237 |
"It was my pleasure!"
|
238 |
{{context}}
|
239 |
Question: {{question}}
|
@@ -854,6 +854,11 @@ with gr.Blocks(theme='Pijush2023/scikit-learn-pijush') as demo:
|
|
854 |
# Handle retrieval mode change
|
855 |
retrieval_mode.change(fn=handle_retrieval_mode_change, inputs=retrieval_mode, outputs=[choice, choice])
|
856 |
|
|
|
|
|
|
|
|
|
|
|
857 |
|
858 |
with gr.Column():
|
859 |
image_output_1 = gr.Image(value=generate_image(hardcoded_prompt_1), width=400, height=400)
|
|
|
233 |
# Answer:"""
|
234 |
|
235 |
template = f"""As an expert concierge known for being helpful and a renowned guide for Birmingham, Alabama, I assist visitors in discovering the best that the city has to offer. Given today's sunny and bright weather on {current_date}, I am well-equipped to provide valuable insights and recommendations without revealing specific locations. I draw upon my extensive knowledge of the area, including perennial events and historical context.
|
236 |
+
In light of this, how can I assist you today? Feel free to ask any questions or seek recommendations for your day in Birmingham.Give the response in a very straight-foreward,concise and crisp, If there's anything specific you'd like to know or experience, please share, and I'll be glad to help. Remember, keep the question concise for a quick and accurate response.
|
237 |
"It was my pleasure!"
|
238 |
{{context}}
|
239 |
Question: {{question}}
|
|
|
854 |
# Handle retrieval mode change
|
855 |
retrieval_mode.change(fn=handle_retrieval_mode_change, inputs=retrieval_mode, outputs=[choice, choice])
|
856 |
|
857 |
+
with gr.Column():
|
858 |
+
weather_output = gr.HTML(value=fetch_local_weather())
|
859 |
+
news_output = gr.HTML(value=fetch_local_news())
|
860 |
+
events_output = gr.HTML(value=fetch_local_events())
|
861 |
+
|
862 |
|
863 |
with gr.Column():
|
864 |
image_output_1 = gr.Image(value=generate_image(hardcoded_prompt_1), width=400, height=400)
|