Spaces:
Build error
Build error
Update app.py
Browse files
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 |
-
|
|
|
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
|