Update app.py
Browse files
app.py
CHANGED
@@ -90,6 +90,10 @@ def format_prompt(prompt,retrieved_documents,k,history,memory_limit=3):
|
|
90 |
for user_message, bot_message in history[0:]:
|
91 |
historylog += f"<s>[INST] {user_message} [/INST] {bot_message} </s>"
|
92 |
|
|
|
|
|
|
|
|
|
93 |
print(historylog)
|
94 |
return PROMPT
|
95 |
|
|
|
90 |
for user_message, bot_message in history[0:]:
|
91 |
historylog += f"<s>[INST] {user_message} [/INST] {bot_message} </s>"
|
92 |
|
93 |
+
with open('file.txt','w+') as data:
|
94 |
+
data.write(str(historylog))
|
95 |
+
|
96 |
+
|
97 |
print(historylog)
|
98 |
return PROMPT
|
99 |
|