Spaces:
Sleeping
Sleeping
Peggy Fan
commited on
Commit
•
de43fad
1
Parent(s):
3d61243
fixed typo
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from langchain.embeddings import OpenAIEmbeddings
|
|
6 |
from langchain.vectorstores import Chroma
|
7 |
from langchain.chains import RetrievalQA
|
8 |
|
9 |
-
openai_api_key = os.environ["
|
10 |
|
11 |
def generate_response(uploaded_file, openai_api_key, query_text):
|
12 |
# Load document if file is uploaded
|
|
|
6 |
from langchain.vectorstores import Chroma
|
7 |
from langchain.chains import RetrievalQA
|
8 |
|
9 |
+
openai_api_key = os.environ["openai_api_key"]
|
10 |
|
11 |
def generate_response(uploaded_file, openai_api_key, query_text):
|
12 |
# Load document if file is uploaded
|