rwitz commited on
Commit
537a460
·
1 Parent(s): 42dacfd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ def write_elo_ratings(elo_ratings):
30
  def format_chatml_prompt(state):
31
  chatml_prompt = ""
32
  for message in state.get("history", []):
33
- chatml_prompt += f"{:<|im_start|> "+message['role']}+"- "+ {message['content']}+"<|im_end|>\n"
34
  return chatml_prompt
35
  def get_bot_response(url, prompt):
36
  chatml_prompt = format_chatml_prompt(state)
 
30
  def format_chatml_prompt(state):
31
  chatml_prompt = ""
32
  for message in state.get("history", []):
33
+ chatml_prompt += f"<|im_start|> "+message['role']+"- "+ message['content']+"<|im_end|>\n"
34
  return chatml_prompt
35
  def get_bot_response(url, prompt):
36
  chatml_prompt = format_chatml_prompt(state)