turing-usp commited on
Commit
8901922
1 Parent(s): bca4553

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -23,7 +23,8 @@ from langchain.chains import ConversationalRetrievalChain
23
  from langchain.callbacks import get_openai_callback
24
  from langchain import PromptTemplate
25
  from langchain import LLMChain
26
- os.environ['OPENAI_API_KEY'] = openai_api_key
 
27
 
28
 
29
 
 
23
  from langchain.callbacks import get_openai_callback
24
  from langchain import PromptTemplate
25
  from langchain import LLMChain
26
+ openai_api_key = os.getenv("openai_api_key")
27
+
28
 
29
 
30