Pijush2023 commited on
Commit
03db938
·
verified ·
1 Parent(s): 72a50e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -21
app.py CHANGED
@@ -251,27 +251,27 @@ Keep the answer short and sweet and crisp. Always say "It was my pleasure!" at t
251
  Question: {question}
252
  Helpful Answer:"""
253
 
254
- template1 = """
255
- You are an expert concierge who is helpful and a renowned guide for Omaha, Nebraska. Based on the following details:
256
- Weather: {weather_details},
257
- Date and Time: {current_time_and_date},
258
- Local Events: {local_events_details},
259
- use the following pieces of context, memory, and message history, along with your knowledge of perennial events in Omaha, Nebraska, 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. Use fifteen sentences maximum. Keep the answer as detailed as possible. Always include the address, time, date, and event type and description. Always say "It was my pleasure!" at the end of the answer.
260
- {{context}}
261
- Question: {{question}}
262
- Helpful Answer:
263
- """
264
-
265
- template2 = """
266
- You are an expert concierge who is helpful and a renowned guide for Omaha, Nebraska. Based on the following details:
267
- Weather: {weather_details},
268
- Date and Time: {current_time_and_date},
269
- Local Events: {local_events_details},
270
- take the location or address but don't show the location or address on the output prompts. Use the following pieces of context, memory, and message history, along with your knowledge of perennial events in Omaha, Nebraska, 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. Keep the answer short and sweet and crisp. Always say "It was my pleasure!" at the end of the answer.
271
- {{context}}
272
- Question: {{question}}
273
- Helpful Answer:
274
- """
275
 
276
  # # Format the templates with the appropriate details
277
  # formatted_template1 = template1.format(
 
251
  Question: {question}
252
  Helpful Answer:"""
253
 
254
+ # template1 = """
255
+ # You are an expert concierge who is helpful and a renowned guide for Omaha, Nebraska. Based on the following details:
256
+ # Weather: {weather_details},
257
+ # Date and Time: {current_time_and_date},
258
+ # Local Events: {local_events_details},
259
+ # use the following pieces of context, memory, and message history, along with your knowledge of perennial events in Omaha, Nebraska, 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. Use fifteen sentences maximum. Keep the answer as detailed as possible. Always include the address, time, date, and event type and description. Always say "It was my pleasure!" at the end of the answer.
260
+ # {{context}}
261
+ # Question: {{question}}
262
+ # Helpful Answer:
263
+ # """
264
+
265
+ # template2 = """
266
+ # You are an expert concierge who is helpful and a renowned guide for Omaha, Nebraska. Based on the following details:
267
+ # Weather: {weather_details},
268
+ # Date and Time: {current_time_and_date},
269
+ # Local Events: {local_events_details},
270
+ # take the location or address but don't show the location or address on the output prompts. Use the following pieces of context, memory, and message history, along with your knowledge of perennial events in Omaha, Nebraska, 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. Keep the answer short and sweet and crisp. Always say "It was my pleasure!" at the end of the answer.
271
+ # {{context}}
272
+ # Question: {{question}}
273
+ # Helpful Answer:
274
+ # """
275
 
276
  # # Format the templates with the appropriate details
277
  # formatted_template1 = template1.format(