Spaces:
Runtime error
Runtime error
Commit
·
eab5c6e
1
Parent(s):
562bc58
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def chat(
|
|
41 |
history_messages = state
|
42 |
if history_messages == None:
|
43 |
history_messages = []
|
44 |
-
history_messages.append({"role": "system", "content":
|
45 |
|
46 |
history_messages.append({"role": "user", "content": message})
|
47 |
# We have no content for the assistant's response yet but we will update this:
|
|
|
41 |
history_messages = state
|
42 |
if history_messages == None:
|
43 |
history_messages = []
|
44 |
+
history_messages.append({"role": "system", "content":"A helpful assistant."})
|
45 |
|
46 |
history_messages.append({"role": "user", "content": message})
|
47 |
# We have no content for the assistant's response yet but we will update this:
|