Spaces:
Sleeping
Sleeping
added the tailor responses
Browse files
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 |
-
|
| 128 |
-
|
| 129 |
-
|
| 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)
|