rwitz commited on
Commit
50a8cb3
·
1 Parent(s): 41b12a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ def write_elo_ratings(elo_ratings):
29
  # Function to get bot response
30
  def format_chatml_prompt(state):
31
  chatml_prompt = ""
32
- for message in state["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):
 
29
  # Function to get bot response
30
  def format_chatml_prompt(state):
31
  chatml_prompt = ""
32
+ for message in state["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):