Update app.py
Browse files
app.py
CHANGED
|
@@ -124,7 +124,8 @@ def talk(prompt, history):
|
|
| 124 |
# historylog += f"<s>[INST] {user_message} [/INST] {bot_message} </s>"
|
| 125 |
historylog += f"<s> {prompt} \n {response} </s>"
|
| 126 |
print("history log")
|
| 127 |
-
print(historylog)
|
|
|
|
| 128 |
with open('file.txt','w+') as data:
|
| 129 |
data.write(str(historylog))
|
| 130 |
|
|
|
|
| 124 |
# historylog += f"<s>[INST] {user_message} [/INST] {bot_message} </s>"
|
| 125 |
historylog += f"<s> {prompt} \n {response} </s>"
|
| 126 |
print("history log")
|
| 127 |
+
print(str(historylog))
|
| 128 |
+
print("history log printed")
|
| 129 |
with open('file.txt','w+') as data:
|
| 130 |
data.write(str(historylog))
|
| 131 |
|