Namitg02 commited on
Commit
7f8eec1
·
verified ·
1 Parent(s): 2fd9c03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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: