Pijush2023 commited on
Commit
19ee583
·
verified ·
1 Parent(s): cab4e93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -13
app.py CHANGED
@@ -213,23 +213,15 @@ 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:"""
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:"""
232
 
 
233
  template2 = """You are an expert concierge who is helpful and a renowned guide for Birmingham,Alabama. Based on today's weather being a sunny bright day and today's date is 1st july 2024, take the location or address but don't show the location or address on the output prompts. Use the following pieces of context,
234
  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.
235
  Keep the answer short and sweet and crisp. Always say "It was my pleasure!" at the end of the 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
+
225
  template2 = """You are an expert concierge who is helpful and a renowned guide for Birmingham,Alabama. Based on today's weather being a sunny bright day and today's date is 1st july 2024, take the location or address but don't show the location or address on the output prompts. Use the following pieces of context,
226
  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.
227
  Keep the answer short and sweet and crisp. Always say "It was my pleasure!" at the end of the answer.