Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -216,7 +216,7 @@ def get_weather_icon(condition):
|
|
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. Always say "It was my pleasure!" at the end of the answer.
|
220 |
{context}
|
221 |
Question: {question}
|
222 |
Helpful Answer:"""
|
@@ -317,7 +317,7 @@ def extract_addresses(response):
|
|
317 |
r'(\d{2}.*\sStreets)',
|
318 |
r'([A-Z].*\s\d{2},\sBirmingham,\sAL\s\d{5})',
|
319 |
r'([a-zA-Z]\s Birmingham)',
|
320 |
-
r'([a-zA-Z]
|
321 |
]
|
322 |
addresses = []
|
323 |
for pattern in address_patterns:
|
|
|
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:"""
|
|
|
317 |
r'(\d{2}.*\sStreets)',
|
318 |
r'([A-Z].*\s\d{2},\sBirmingham,\sAL\s\d{5})',
|
319 |
r'([a-zA-Z]\s Birmingham)',
|
320 |
+
r'([a-zA-Z].*,\sBirmingham,\sAL)'
|
321 |
]
|
322 |
addresses = []
|
323 |
for pattern in address_patterns:
|