ryanrwatkins commited on
Commit
674a361
1 Parent(s): 5801c65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -188,6 +188,7 @@ def submit_message(prompt, prompt_template, temperature, max_tokens, context_len
188
  history.append("error")
189
 
190
  total_tokens_used_msg = f"Total tokens used: {state['total_tokens']}"
 
191
  #chat_messages = [(history[i]['content'], history[i+1]['content']) for i in range(0, len(history)-1, 2)]
192
  chat_messages = [(history[-2]['content'],history[-1]['content'])]
193
  return '', chat_messages, total_tokens_used_msg, state
 
188
  history.append("error")
189
 
190
  total_tokens_used_msg = f"Total tokens used: {state['total_tokens']}"
191
+
192
  #chat_messages = [(history[i]['content'], history[i+1]['content']) for i in range(0, len(history)-1, 2)]
193
  chat_messages = [(history[-2]['content'],history[-1]['content'])]
194
  return '', chat_messages, total_tokens_used_msg, state