Spaces:
Sleeping
Sleeping
lindsay-qu
commited on
Commit
•
ec1a69d
1
Parent(s):
8145c86
Update app.py
Browse files
app.py
CHANGED
@@ -10,10 +10,6 @@ import time
|
|
10 |
api_key = os.environ["OPENAI_API_KEY"]
|
11 |
api_base = os.environ["OPENAI_API_BASE"]
|
12 |
|
13 |
-
# dddd
|
14 |
-
# def embed(texts: list):
|
15 |
-
# return openai.Embedding.create(input=texts, model="text-embedding-ada-002")["data"]["embedding"]
|
16 |
-
|
17 |
def chatbot_initialize():
|
18 |
retriever = core.retriever.ChromaRetriever(pdf_dir="",
|
19 |
collection_name="pdfs_1000",
|
|
|
10 |
api_key = os.environ["OPENAI_API_KEY"]
|
11 |
api_base = os.environ["OPENAI_API_BASE"]
|
12 |
|
|
|
|
|
|
|
|
|
13 |
def chatbot_initialize():
|
14 |
retriever = core.retriever.ChromaRetriever(pdf_dir="",
|
15 |
collection_name="pdfs_1000",
|