Update app.py
Browse files
app.py
CHANGED
|
@@ -120,8 +120,9 @@ def talk(prompt, history):
|
|
| 120 |
response = stream['choices'][0]['message']['content']
|
| 121 |
|
| 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:
|
|
|
|
| 120 |
response = stream['choices'][0]['message']['content']
|
| 121 |
|
| 122 |
global historylog
|
| 123 |
+
# for user_message, bot_message in history[0:]:
|
| 124 |
+
# historylog += f"<s>[INST] {user_message} [/INST] {bot_message} </s>"
|
| 125 |
+
historylog += f"<s> {prompt} \n {response} </s>"
|
| 126 |
print("history log")
|
| 127 |
print(historylog)
|
| 128 |
with open('file.txt','w+') as data:
|