Update app.py
Browse files
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 |
-
|
132 |
-
|
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()
|