Spaces:
Build error
Build error
Commit
•
e347585
1
Parent(s):
90e2c42
Update summ.py (#1)
Browse files- Update summ.py (bb6f5d963433de3796d3b6c92aa24471c750e71d)
Co-authored-by: Adhi Setiawan <[email protected]>
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 |
|