Spaces:
Sleeping
Sleeping
fixed error
Browse files
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
|
| 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
|
| 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:
|