Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -117,6 +117,7 @@ def main():
|
|
117 |
## Get context
|
118 |
params = {
|
119 |
"chat_history": [
|
|
|
120 |
{"content": prompt}
|
121 |
],
|
122 |
"model": "bloom-7b",
|
|
|
117 |
## Get context
|
118 |
params = {
|
119 |
"chat_history": [
|
120 |
+
{"content": x["content"]} for x in st.session_state.messages[:-5],
|
121 |
{"content": prompt}
|
122 |
],
|
123 |
"model": "bloom-7b",
|