noorulamean444 commited on
Commit
ddca142
1 Parent(s): 5b84f6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -47,6 +47,9 @@ def chat(message,history):
47
 
48
  #prompt = f"<|user|>\n{message}<|end|>\n<|assistant|>"
49
  user_input = similar_chat_history + prompt
 
 
 
50
  inp_dict = {"inputs":user_input,
51
  "parameters": {"max_new_tokens":750,"temperature":0.01}}
52
  output = query(inp_dict)
 
47
 
48
  #prompt = f"<|user|>\n{message}<|end|>\n<|assistant|>"
49
  user_input = similar_chat_history + prompt
50
+ with open('chats_log.txt','a') as file:
51
+ file.write(user_input + '\n')
52
+
53
  inp_dict = {"inputs":user_input,
54
  "parameters": {"max_new_tokens":750,"temperature":0.01}}
55
  output = query(inp_dict)