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