fengtc commited on
Commit
9de1898
·
1 Parent(s): a651eac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ chain = load_qa_chain(OpenAI(temperature=0,model_name="gpt-3.5-turbo"), chain_ty
50
 
51
  def predict(message, history):
52
  history_langchain_format = []
53
- for human, ai in history:
54
  history_langchain_format.append(SystemMessage(content=system))
55
  history_langchain_format.append(HumanMessage(content=human))
56
  history_langchain_format.append(AIMessage(content=ai))
 
50
 
51
  def predict(message, history):
52
  history_langchain_format = []
53
+ for system,human, ai in history:
54
  history_langchain_format.append(SystemMessage(content=system))
55
  history_langchain_format.append(HumanMessage(content=human))
56
  history_langchain_format.append(AIMessage(content=ai))