Spaces:
Build error
Build error
Chandranshu Jain
commited on
Rename app.py to app2.py
Browse files- app.py → app2.py +1 -1
app.py → app2.py
RENAMED
|
@@ -51,7 +51,7 @@ GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY")
|
|
| 51 |
def embedding(chunk):
|
| 52 |
embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")
|
| 53 |
#vector = Chroma.from_documents(chunk)
|
| 54 |
-
new_client = chromadb.EphemeralClient(
|
| 55 |
db = Chroma.from_documents(vector, embeddings,client=new_client
|
| 56 |
, persist_directory="./chroma_db")
|
| 57 |
|
|
|
|
| 51 |
def embedding(chunk):
|
| 52 |
embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")
|
| 53 |
#vector = Chroma.from_documents(chunk)
|
| 54 |
+
new_client = chromadb.EphemeralClient()
|
| 55 |
db = Chroma.from_documents(vector, embeddings,client=new_client
|
| 56 |
, persist_directory="./chroma_db")
|
| 57 |
|