Spaces:
Build error
Build error
adhisetiawan
commited on
Commit
•
bb6f5d9
1
Parent(s):
90e2c42
Update summ.py
Browse files
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 |
|