Update app.py
Browse files
app.py
CHANGED
@@ -122,6 +122,7 @@ def talk(prompt, history):
|
|
122 |
global historylog
|
123 |
for user_message, bot_message in history[0:]:
|
124 |
historylog += f"<s>[INST] {user_message} [/INST] {bot_message} </s>"
|
|
|
125 |
print(historylog)
|
126 |
with open('file.txt','w+') as data:
|
127 |
data.write(str(historylog))
|
|
|
122 |
global historylog
|
123 |
for user_message, bot_message in history[0:]:
|
124 |
historylog += f"<s>[INST] {user_message} [/INST] {bot_message} </s>"
|
125 |
+
print("history log")
|
126 |
print(historylog)
|
127 |
with open('file.txt','w+') as data:
|
128 |
data.write(str(historylog))
|