SauravMaheshkar commited on
Commit
c3cfbdd
·
unverified ·
1 Parent(s): 0666b28

fix?: context parsing

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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": [" ".join(doc_context)][
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
  }