thoristhor commited on
Commit
476f9ac
1 Parent(s): 3003569

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ tools = [
25
  ]
26
  memory = GPTIndexMemory(index=indexed_pinecone, memory_key="chat_history", query_kwargs={"response_mode": "compact"})
27
  llm=OpenAI(temperature=0)
28
- agent_chain = initialize_agent([], llm, agent="conversational-react-description", memory=memory)
29
 
30
  def predict(input, history=[]):
31
  response = agent_chain.run(input)
 
25
  ]
26
  memory = GPTIndexMemory(index=indexed_pinecone, memory_key="chat_history", query_kwargs={"response_mode": "compact"})
27
  llm=OpenAI(temperature=0)
28
+ agent_chain = initialize_agent(tools, llm, agent="conversational-react-description", memory=memory, verbose=True)
29
 
30
  def predict(input, history=[]):
31
  response = agent_chain.run(input)