Spaces:
Sleeping
Sleeping
fix?: context parsing
Browse files
app.py
CHANGED
@@ -98,7 +98,7 @@ def update_state(history: HistoryType, message: Optional[Dict[str, str]]):
|
|
98 |
history.append(
|
99 |
{
|
100 |
"role": "assistant",
|
101 |
-
"content":
|
102 |
: pipe.model.config.max_position_embeddings
|
103 |
],
|
104 |
}
|
|
|
98 |
history.append(
|
99 |
{
|
100 |
"role": "assistant",
|
101 |
+
"content": " ".join(doc_context)[
|
102 |
: pipe.model.config.max_position_embeddings
|
103 |
],
|
104 |
}
|