justest commited on
Commit
9a0b6c3
1 Parent(s): 06b90de
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -140,7 +140,8 @@ with gr.Blocks() as demo:
140
  for user_message, assistant_message in history[1:-1]:
141
  messages.append({"role": "user", "content": user_message})
142
  messages.append({"role": "assistant", "content": assistant_message})
143
- messages.append({"role": "user", "content": history[-1, 0]})
 
144
 
145
  bot_msg = g4f.ChatCompletion.create(
146
  model=model_name,
 
140
  for user_message, assistant_message in history[1:-1]:
141
  messages.append({"role": "user", "content": user_message})
142
  messages.append({"role": "assistant", "content": assistant_message})
143
+ messages.append({"role": "user", "content": history[-1][0]})
144
+ print(messages)
145
 
146
  bot_msg = g4f.ChatCompletion.create(
147
  model=model_name,