astroarya commited on
Commit
aa571df
·
1 Parent(s): 9dc4ddf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -5,7 +5,8 @@ from langchain.prompts import PromptTemplate
5
  from langchain.chains import LLMChain, SequentialChain
6
  from langchain.memory import ConversationBufferMemory
7
  from langchain.utilities import WikipediaAPIWrapper
8
- from apikey import apikey
 
9
 
10
 
11
  os.environ['OPENAI_API_KEY']=apikey
 
5
  from langchain.chains import LLMChain, SequentialChain
6
  from langchain.memory import ConversationBufferMemory
7
  from langchain.utilities import WikipediaAPIWrapper
8
+ OPENAI_KEY = os.getenv("OPENAI_API_KEY")
9
+ os.environ['OPENAI_API_KEY'] = OPENAI_KEY
10
 
11
 
12
  os.environ['OPENAI_API_KEY']=apikey