YC-Chen commited on
Commit
98ba996
1 Parent(s): 88c05b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)