Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -103,7 +103,7 @@ with gr.Blocks() as demo:
|
|
103 |
chat_data = []
|
104 |
for user_msg, assistant_msg in history:
|
105 |
chat_data += [
|
106 |
-
{"role": "user", user_msg},
|
107 |
{"role": "assistant", "content": assistant_msg},
|
108 |
]
|
109 |
message = tokenizer.apply_chat_template(chat, tokenize=False)
|
|
|
103 |
chat_data = []
|
104 |
for user_msg, assistant_msg in history:
|
105 |
chat_data += [
|
106 |
+
{"role": "user", "content": user_msg},
|
107 |
{"role": "assistant", "content": assistant_msg},
|
108 |
]
|
109 |
message = tokenizer.apply_chat_template(chat, tokenize=False)
|