Spaces:
Sleeping
Sleeping
Commit ·
eec9db2
1
Parent(s): b001e7b
Update app.py
Browse files30 unmodified lines3132333435343536373830 unmodified lines
def format_prompt(message, history): global manual_content if manual_content is None or not history or not any(user_prompt for user_prompt, _ in history): get_manual_content() #if manual_content is None or not history or not any(user_prompt for user_prompt, _ in history): get_manual_content() prompt = "<s>" for user_prompt, bot_response in history: prompt += f"[INST] {user_prompt} [/INST]"app.py+2-2