Spaces:
Sleeping
Sleeping
tawfik.gh
commited on
Commit
•
30ae697
1
Parent(s):
75e09c0
update the history docs
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ if prompt := st.chat_input("What is up?"):
|
|
60 |
if not prompt.__contains__("Yes") or not prompt.__contains__("No"):
|
61 |
docs = oracle_db(prompt, 5)
|
62 |
if len(history_docs) == 3:
|
63 |
-
history_docs
|
64 |
history_docs.append(docs)
|
65 |
else:
|
66 |
history_docs.append(docs)
|
|
|
60 |
if not prompt.__contains__("Yes") or not prompt.__contains__("No"):
|
61 |
docs = oracle_db(prompt, 5)
|
62 |
if len(history_docs) == 3:
|
63 |
+
history_docs.pop(0)
|
64 |
history_docs.append(docs)
|
65 |
else:
|
66 |
history_docs.append(docs)
|