Spaces:
Sleeping
Sleeping
Commit ·
eec9db2
1
Parent(s): b001e7b
Update app.py
Browse files30 unmodified lines313233343536373830 unmodified linesdef format_prompt(message, history):global manual_contentif 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]"30 unmodified lines313233343536373830 unmodified linesdef 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()prompt = "<s>"for user_prompt, bot_response in history:prompt += f"[INST] {user_prompt} [/INST]"
app.py+2-2