Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def start_chat():
|
|
31 |
@cl.on_message # marks a function that should be run each time the chatbot receives a message from a user
|
32 |
async def main(message: str):
|
33 |
message_history = cl.user_session.get("message_history")
|
34 |
-
message_history.append({"role": "user", "content": message})
|
35 |
|
36 |
msg = cl.Message(content="")
|
37 |
|
|
|
31 |
@cl.on_message # marks a function that should be run each time the chatbot receives a message from a user
|
32 |
async def main(message: str):
|
33 |
message_history = cl.user_session.get("message_history")
|
34 |
+
message_history.append({"role": "user", "content": message + " Think through your response step by step."})
|
35 |
|
36 |
msg = cl.Message(content="")
|
37 |
|