Namitg02 commited on
Commit
688721c
·
verified ·
1 Parent(s): 8007977

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -90,6 +90,10 @@ def format_prompt(prompt,retrieved_documents,k,history,memory_limit=3):
90
  for user_message, bot_message in history[0:]:
91
  historylog += f"<s>[INST] {user_message} [/INST] {bot_message} </s>"
92
 
 
 
 
 
93
  print(historylog)
94
  return PROMPT
95
 
 
90
  for user_message, bot_message in history[0:]:
91
  historylog += f"<s>[INST] {user_message} [/INST] {bot_message} </s>"
92
 
93
+ with open('file.txt','w+') as data:
94
+ data.write(str(historylog))
95
+
96
+
97
  print(historylog)
98
  return PROMPT
99