Update app.py
Browse files
app.py
CHANGED
@@ -119,9 +119,9 @@ def talk(prompt, history):
|
|
119 |
|
120 |
try:
|
121 |
# write data to file
|
122 |
-
with open("file.txt", "a") as data:
|
123 |
data.write(historylog)
|
124 |
-
data = open("file.txt", "r")
|
125 |
data.seek(0)
|
126 |
# Read the contents of the file to display it.
|
127 |
print("History log printed:")
|
|
|
119 |
|
120 |
try:
|
121 |
# write data to file
|
122 |
+
with open("./file.txt", "a") as data:
|
123 |
data.write(historylog)
|
124 |
+
data = open("./file.txt", "r")
|
125 |
data.seek(0)
|
126 |
# Read the contents of the file to display it.
|
127 |
print("History log printed:")
|