Spaces:
Build error
Build error
Update summ.py
#1
by
adhisetiawan
- opened
summ.py
CHANGED
@@ -7,7 +7,7 @@ from langchain.text_splitter import CharacterTextSplitter
|
|
7 |
from langchain.chains import ReduceDocumentsChain, MapReduceDocumentsChain
|
8 |
from langchain.chains.combine_documents.stuff import StuffDocumentsChain
|
9 |
|
10 |
-
os.environ['OPENAI_API_KEY'] =
|
11 |
|
12 |
llm = ChatOpenAI(temperature=0, model_name="gpt-4-0125-preview")
|
13 |
|
|
|
7 |
from langchain.chains import ReduceDocumentsChain, MapReduceDocumentsChain
|
8 |
from langchain.chains.combine_documents.stuff import StuffDocumentsChain
|
9 |
|
10 |
+
os.environ['OPENAI_API_KEY'] = os.getenv("OPENAI_API_KEY")
|
11 |
|
12 |
llm = ChatOpenAI(temperature=0, model_name="gpt-4-0125-preview")
|
13 |
|