thoristhor commited on
Commit
d1c017d
1 Parent(s): 30d5280

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -14,12 +14,11 @@ pointing_pinecone_index=pinecone.Index("sethgodin")
14
  main_index=GPTPineconeIndex([],pinecone_index=pointing_pinecone_index)
15
  memory = GPTIndexMemory(index=main_index, memory_key="chat_history", query_kwargs={"response_mode": "compact"})
16
  llm=OpenAI(temperature=0.3)
17
- agent_chain = initialize_agent([], llm, agent="conversational-react-description", memory=memory
18
 
19
  if "history" not in st.session_state:
20
  st.session_state.history = []
21
 
22
-
23
  def generate_answer():
24
  user_message=st.session_state.input_text
25
  message_bot = agent_chain.run(input=user_message)
 
14
  main_index=GPTPineconeIndex([],pinecone_index=pointing_pinecone_index)
15
  memory = GPTIndexMemory(index=main_index, memory_key="chat_history", query_kwargs={"response_mode": "compact"})
16
  llm=OpenAI(temperature=0.3)
17
+ agent_chain = initialize_agent([], llm, agent="conversational-react-description", memory=memory)
18
 
19
  if "history" not in st.session_state:
20
  st.session_state.history = []
21
 
 
22
  def generate_answer():
23
  user_message=st.session_state.input_text
24
  message_bot = agent_chain.run(input=user_message)