Namitg02 commited on
Commit
0e7209a
·
verified ·
1 Parent(s): 44f563e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -128,10 +128,8 @@ def talk(prompt, history):
128
  print("history log printed")
129
  with open('file.txt', 'w+') as data:
130
  data.write(str(historylog))
131
- data.seek(0)
132
- print(data.read())
133
- data.close()
134
-
135
 
136
  # from huggingface_hub import HfApi
137
  # api = HfApi()
 
128
  print("history log printed")
129
  with open('file.txt', 'w+') as data:
130
  data.write(str(historylog))
131
+ data.seek(0)
132
+ print(data.read())
 
 
133
 
134
  # from huggingface_hub import HfApi
135
  # api = HfApi()