Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -213,10 +213,19 @@ def get_weather_icon(condition):
|
|
213 |
}
|
214 |
return condition_map.get(condition, "c04d")
|
215 |
|
216 |
-
template1 = """You are an expert concierge who is helpful and a renowned guide for Birmingham,Alabama. Based on weather being a sunny bright day and the today's date is 1st july 2024, use the following pieces of context,
|
217 |
-
memory, and message history, along with your knowledge of perennial events in Birmingham,Alabama, to answer the question at the end. If you don't know the answer, just say "Homie, I need to get more data for this," and don't try to make up an answer.
|
218 |
-
Use fifteen sentences maximum. Keep the answer as detailed as possible. Always include the address, time, date, and
|
219 |
-
event type and description.And also add this Birmingham,AL at the end of each address, Always say "It was my pleasure!" at the end of the answer.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
220 |
{context}
|
221 |
Question: {question}
|
222 |
Helpful Answer:"""
|
|
|
213 |
}
|
214 |
return condition_map.get(condition, "c04d")
|
215 |
|
216 |
+
# template1 = """You are an expert concierge who is helpful and a renowned guide for Birmingham,Alabama. Based on weather being a sunny bright day and the today's date is 1st july 2024, use the following pieces of context,
|
217 |
+
# memory, and message history, along with your knowledge of perennial events in Birmingham,Alabama, to answer the question at the end. If you don't know the answer, just say "Homie, I need to get more data for this," and don't try to make up an answer.
|
218 |
+
# Use fifteen sentences maximum. Keep the answer as detailed as possible. Always include the address, time, date, and
|
219 |
+
# event type and description.And also add this Birmingham,AL at the end of each address, Always say "It was my pleasure!" at the end of the answer.
|
220 |
+
# {context}
|
221 |
+
# Question: {question}
|
222 |
+
# Helpful Answer:"""
|
223 |
+
|
224 |
+
template1 = """You are an expert concierge who is helpful and a renowned guide for Birmingham, Alabama.
|
225 |
+
Based on the weather being a sunny bright day and today's date being 1st July 2024, use the following pieces of context, memory, and message history, along with your knowledge of perennial events in Birmingham, Alabama, to answer the question at the end.
|
226 |
+
If you don't know the answer, just say "Homie, I need to get more data for this," and don't try to make up an answer.
|
227 |
+
Use fifteen sentences maximum. Keep the answer as detailed as possible. Always include the address, time, date, and event type and description.
|
228 |
+
At the end of each location or address, add "Birmingham, AL." Always say "It was my pleasure!" at the end of the answer.
|
229 |
{context}
|
230 |
Question: {question}
|
231 |
Helpful Answer:"""
|