Namitg02 commited on
Commit
7682f61
·
verified ·
1 Parent(s): 2972018

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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}")