DiamondYin commited on
Commit
af79fb8
1 Parent(s): af8a075

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -101,6 +101,7 @@ def get_response(history, audio_input):
101
 
102
  conv_history_tokens = num_tokens_from_messages(MESSAGES)
103
  print("conv_history_tokens: ", conv_history_tokens)
 
104
  while (conv_history_tokens + max_response_tokens >= token_limit):
105
  del MESSAGES[1]
106
  conv_history_tokens = num_tokens_from_messages(MESSAGES)
 
101
 
102
  conv_history_tokens = num_tokens_from_messages(MESSAGES)
103
  print("conv_history_tokens: ", conv_history_tokens)
104
+ print("MESSAGES", MESSAGES)
105
  while (conv_history_tokens + max_response_tokens >= token_limit):
106
  del MESSAGES[1]
107
  conv_history_tokens = num_tokens_from_messages(MESSAGES)