Update app.py
Browse files
app.py
CHANGED
@@ -125,7 +125,7 @@ def talk(prompt, history):
|
|
125 |
print("history log")
|
126 |
print(str(historylog))
|
127 |
print("history log printed")
|
128 |
-
with open('file.txt', '
|
129 |
data.write(str(historylog))
|
130 |
data.seek(0)
|
131 |
print(data.read())
|
|
|
125 |
print("history log")
|
126 |
print(str(historylog))
|
127 |
print("history log printed")
|
128 |
+
with open('file.txt', 'a') as data:
|
129 |
data.write(str(historylog))
|
130 |
data.seek(0)
|
131 |
print(data.read())
|