Harrison Chase commited on
Commit
698fa23
1 Parent(s): cee6e7a
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -19,12 +19,10 @@ def get_weaviate_store():
19
  return Weaviate(client, "Paragraph", "content", attributes=["source"])
20
 
21
 
22
- vectorstore = get_weaviate_store()
23
-
24
-
25
  def set_openai_api_key(api_key, agent):
26
  if api_key:
27
  os.environ["OPENAI_API_KEY"] = api_key
 
28
  qa_chain = get_new_chain1(vectorstore)
29
  os.environ["OPENAI_API_KEY"] = ""
30
  return qa_chain
 
19
  return Weaviate(client, "Paragraph", "content", attributes=["source"])
20
 
21
 
 
 
 
22
  def set_openai_api_key(api_key, agent):
23
  if api_key:
24
  os.environ["OPENAI_API_KEY"] = api_key
25
+ vectorstore = get_weaviate_store()
26
  qa_chain = get_new_chain1(vectorstore)
27
  os.environ["OPENAI_API_KEY"] = ""
28
  return qa_chain