Update app.py
Browse files
app.py
CHANGED
@@ -202,7 +202,7 @@ def chat_thread_response(ai_persona: str,msg_history: str, msg_prompt: str) -> d
|
|
202 |
|
203 |
generation_params = {"do_sample": True,"temperature": 0.7,"top_p": 0.95,"top_k": 40,"max_new_tokens": 512,"repetition_penalty": 1.1}
|
204 |
pipe = pipeline("text-generation",model=model, tokenizer=tokenizer, **generation_params)
|
205 |
-
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
|
206 |
|
207 |
if msg_history:
|
208 |
|
|
|
202 |
|
203 |
generation_params = {"do_sample": True,"temperature": 0.7,"top_p": 0.95,"top_k": 40,"max_new_tokens": 512,"repetition_penalty": 1.1}
|
204 |
pipe = pipeline("text-generation",model=model, tokenizer=tokenizer, **generation_params)
|
205 |
+
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. '''
|
206 |
|
207 |
if msg_history:
|
208 |
|