Update app.py
Browse files
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))
|