Thierry Moreau преди 1 година
родител
ревизия
b5946e345f
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      demo_apps/OctoAI_API_examples/Llama2_Gradio.ipynb

+ 2 - 2
demo_apps/OctoAI_API_examples/Llama2_Gradio.ipynb

@@ -89,8 +89,8 @@
     "        history_langchain_format.append(HumanMessage(content=human))\n",
     "        history_langchain_format.append(AIMessage(content=ai))\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",
     "gr.ChatInterface(predict).launch()"
    ]