mohmehdi commited on
Commit
1164f6b
·
verified ·
1 Parent(s): cb9faeb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,9 +5,9 @@ client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
5
 
6
  def format_prompt(message, history):
7
  prompt = "<s>"
8
- for user_prompt, bot_response in history:
9
- prompt += f"[INST] {user_prompt} [/INST]"
10
- prompt += f" {bot_response}</s> "
11
  prompt = f"[INST] {message} [/INST]"
12
  return prompt
13
 
 
5
 
6
  def format_prompt(message, history):
7
  prompt = "<s>"
8
+ # for user_prompt, bot_response in history:
9
+ # prompt += f"[INST] {user_prompt} [/INST]"
10
+ # prompt += f" {bot_response}</s> "
11
  prompt = f"[INST] {message} [/INST]"
12
  return prompt
13