GLTdd commited on
Commit
2716580
·
1 Parent(s): 71fb659

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -126,6 +126,7 @@ def predict(inputs, top_p, temperature, openai_api_key, chatbot=[], history=[],
126
  chatbot[-1] = (history[-2], history[-1])
127
  # chat = [(history[i], history[i + 1]) for i in range(0, len(history) - 1, 2) ] # convert to tuples of list
128
  token_counter += 1
 
129
  # resembles {chatbot: chat, state: history}
130
  yield chatbot, history
131
 
 
126
  chatbot[-1] = (history[-2], history[-1])
127
  # chat = [(history[i], history[i + 1]) for i in range(0, len(history) - 1, 2) ] # convert to tuples of list
128
  token_counter += 1
129
+ print(chatbot)
130
  # resembles {chatbot: chat, state: history}
131
  yield chatbot, history
132