Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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"
|
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)
|