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