fionasu commited on
Commit
c2b2676
·
verified ·
1 Parent(s): 4d5a4dc

added the tailor responses

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -124,11 +124,10 @@ def respond(message, history, use_spanish, chatbot_mode, destinations, season, l
124
  f"Food: {', '.join(food_prefs)}\n"
125
  )
126
 
127
- chatbot_purpose = f"Chatbot Mode: {', '.join(chatbot_mode)}\n"
128
- print("22222222222222222222222222222222222222")
129
- print(chatbot_purpose)
130
-
131
- messages = [{"role": "system", "content": f"You're a friendly and gen z chatbot. Base your response on the provided context: {top_weather} and {top_luggage}."}]
132
 
133
  if history:
134
  messages.extend(history)
 
124
  f"Food: {', '.join(food_prefs)}\n"
125
  )
126
 
127
+ if chatbot_mode == "Packing":
128
+ messages = [{"role": "system", "content": f"You're a friendly and gen z chatbot. Base your response on the provided context: {top_weather} and {top_luggage}."}]
129
+ elif chatbot_mode == "Food/Attractions":
130
+ messages = [{"role": "system", "content": f"You're a friendly and gen z chatbot. Base your response on the provided context: {top_food} and {top_attraction}."}]
 
131
 
132
  if history:
133
  messages.extend(history)