|
@@ -89,8 +89,8 @@
|
|
" history_langchain_format.append(HumanMessage(content=human))\n",
|
|
" history_langchain_format.append(HumanMessage(content=human))\n",
|
|
" history_langchain_format.append(AIMessage(content=ai))\n",
|
|
" history_langchain_format.append(AIMessage(content=ai))\n",
|
|
" history_langchain_format.append(HumanMessage(content=message))\n",
|
|
" history_langchain_format.append(HumanMessage(content=message))\n",
|
|
- " gpt_response = llm(message) #history_langchain_format)\n",
|
|
|
|
- " return gpt_response#.content\n",
|
|
|
|
|
|
+ " llm_response = llm(message, history_langchain_format)\n",
|
|
|
|
+ " return llm_response.content\n",
|
|
"\n",
|
|
"\n",
|
|
"gr.ChatInterface(predict).launch()"
|
|
"gr.ChatInterface(predict).launch()"
|
|
]
|
|
]
|