fionasu commited on
Commit
b4ad355
·
verified ·
1 Parent(s): 8ae3b01

fixed error

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