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

udated another error

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -124,9 +124,11 @@ def respond(message, history, use_spanish, chatbot_mode, destinations, season, l
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:
 
124
  f"Food: {', '.join(food_prefs)}\n"
125
  )
126
 
127
+ chatbot_purpose = f"Chatbot Mode: {', '.join(chatbot_mode)}\n"
128
+
129
+ if chatbot_mode == "Chatbot Mode: Packing":
130
  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}."}]
131
+ elif chatbot_mode == "hatbot Mode: Food/Attractions":
132
  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}."}]
133
 
134
  if history: