Update app.py
Browse files
app.py
CHANGED
|
@@ -130,6 +130,7 @@ def talk(prompt, history):
|
|
| 130 |
# write data to file
|
| 131 |
with open('file.txt', 'a') as data:
|
| 132 |
data.write(historylog)
|
|
|
|
| 133 |
data.seek(0)
|
| 134 |
# Read the contents of the file to display it.
|
| 135 |
print("History log printed:")
|
|
|
|
| 130 |
# write data to file
|
| 131 |
with open('file.txt', 'a') as data:
|
| 132 |
data.write(historylog)
|
| 133 |
+
data.open('r')
|
| 134 |
data.seek(0)
|
| 135 |
# Read the contents of the file to display it.
|
| 136 |
print("History log printed:")
|