ryanrwatkins commited on
Commit
32404f9
1 Parent(s): 81363c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -28,7 +28,7 @@ from langchain.chains.question_answering import load_qa_chain
28
 
29
 
30
  openai.api_key = os.environ['openai_key']
31
- os.environ["OPENAI_API_KEY"] = os.environ['openai_key_rw']
32
 
33
 
34
  prompt_templates = {"All Needs Experts": "Respond as if you are combination of all needs assessment experts."}
@@ -128,7 +128,7 @@ def submit_message(prompt, prompt_template, temperature, max_tokens, context_len
128
  docs = new_docsearch.similarity_search(query)
129
 
130
  chain = load_qa_chain(ChatOpenAI(temperature=temperature, max_tokens=max_tokens, model_name="gpt-3.5-turbo"), chain_type="stuff")
131
- completion = chain.run(input_documents=docs, question=query)
132
 
133
 
134
 
 
28
 
29
 
30
  openai.api_key = os.environ['openai_key']
31
+ os.environ["OPENAI_API_KEY"] = os.environ['openai_key']
32
 
33
 
34
  prompt_templates = {"All Needs Experts": "Respond as if you are combination of all needs assessment experts."}
 
128
  docs = new_docsearch.similarity_search(query)
129
 
130
  chain = load_qa_chain(ChatOpenAI(temperature=temperature, max_tokens=max_tokens, model_name="gpt-3.5-turbo"), chain_type="stuff")
131
+ #completion = chain.run(input_documents=docs, question=query)
132
 
133
 
134