Vitrous commited on
Commit
a498142
·
verified ·
1 Parent(s): 1ffcdfa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -154,7 +154,7 @@ def thread_response(msg_history: str, msg_prompt: str) -> dict:
154
 
155
  generation_params = {"do_sample": True,"temperature": 0.7,"top_p": 0.95,"top_k": 40,"max_new_tokens": 512,"repetition_penalty": 1.1}
156
  pipe = pipeline("text-generation",model=model, tokenizer=tokenizer, **generation_params)
157
- instructions= f''' incase you are asked about something you talked about the previous days or times or periods, use this as reference to recall {msg_history}. Do not point out everything just major keypoints. If nothing is mentioned about the past conversation ingore this. '''
158
 
159
  if msg_history:
160
 
 
154
 
155
  generation_params = {"do_sample": True,"temperature": 0.7,"top_p": 0.95,"top_k": 40,"max_new_tokens": 512,"repetition_penalty": 1.1}
156
  pipe = pipeline("text-generation",model=model, tokenizer=tokenizer, **generation_params)
157
+ instructions= f''' incase you are asked about something you talked about the previous days or times or periods, use this as reference to recall {msg_history}. Do not point out everything just major keypoints. If nothing is mentioned about the past conversation ignore this. '''
158
 
159
  if msg_history:
160