Update app.py
Browse files
app.py
CHANGED
@@ -126,6 +126,7 @@ def talk(prompt, history):
|
|
126 |
# Read the contents of the file to display it.
|
127 |
print("History log printed:")
|
128 |
print(data.read())
|
|
|
129 |
|
130 |
except IOError as e:
|
131 |
print(f"An error occurred: {e}")
|
|
|
126 |
# Read the contents of the file to display it.
|
127 |
print("History log printed:")
|
128 |
print(data.read())
|
129 |
+
data.close()
|
130 |
|
131 |
except IOError as e:
|
132 |
print(f"An error occurred: {e}")
|