Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -120,7 +120,7 @@ def respond(messages, history, mom_type) :
|
|
120 |
messages = [{"role": "system", "content": f"You are chatbot that plays the role of the user's extremely studious, tutor-like mom. Respond in full sentences, don't cut yourself off. Base your response on the provided context: {mom_type}"},
|
121 |
{"role": "user",
|
122 |
"content": (
|
123 |
-
f"Question{
|
124 |
)}]
|
125 |
if history:
|
126 |
messages.extend(history)
|
|
|
120 |
messages = [{"role": "system", "content": f"You are chatbot that plays the role of the user's extremely studious, tutor-like mom. Respond in full sentences, don't cut yourself off. Base your response on the provided context: {mom_type}"},
|
121 |
{"role": "user",
|
122 |
"content": (
|
123 |
+
f"Question{messages}"
|
124 |
)}]
|
125 |
if history:
|
126 |
messages.extend(history)
|