Spaces:
Build error
Build error
Chandranshu Jain
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY")
|
|
| 45 |
|
| 46 |
def embedding(chunk):
|
| 47 |
embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")
|
| 48 |
-
vector = Chroma.from_documents(chunk
|
| 49 |
db = Chroma.from_documents(vector, embeddings, persist_directory="./chroma_db")
|
| 50 |
|
| 51 |
def get_conversational_chain():
|
|
|
|
| 45 |
|
| 46 |
def embedding(chunk):
|
| 47 |
embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")
|
| 48 |
+
vector = Chroma.from_documents(chunk)
|
| 49 |
db = Chroma.from_documents(vector, embeddings, persist_directory="./chroma_db")
|
| 50 |
|
| 51 |
def get_conversational_chain():
|