Spaces:
Sleeping
Sleeping
added introductory prompt
Browse files- backend.py +1 -1
backend.py
CHANGED
@@ -79,7 +79,7 @@ def handle_query(query_str: str,
|
|
79 |
|
80 |
conversation: List[ChatMessage] = []
|
81 |
for user, assistant in chat_history:
|
82 |
-
conversation.
|
83 |
ChatMessage(role=MessageRole.USER, content=user),
|
84 |
ChatMessage(role=MessageRole.ASSISTANT, content=assistant),
|
85 |
]
|
|
|
79 |
|
80 |
conversation: List[ChatMessage] = []
|
81 |
for user, assistant in chat_history:
|
82 |
+
conversation.extend([
|
83 |
ChatMessage(role=MessageRole.USER, content=user),
|
84 |
ChatMessage(role=MessageRole.ASSISTANT, content=assistant),
|
85 |
]
|