Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ def get_text_chunks(text):
|
|
| 36 |
|
| 37 |
|
| 38 |
def get_vector_store(text_chunks):
|
| 39 |
-
embeddings = GoogleGenerativeAIEmbeddings(model = "models/embedding-001")
|
| 40 |
vector_store = FAISS.from_texts(text_chunks, embedding=embeddings)
|
| 41 |
vector_store.save_local("faiss_index")
|
| 42 |
|
|
|
|
| 36 |
|
| 37 |
|
| 38 |
def get_vector_store(text_chunks):
|
| 39 |
+
embeddings = GoogleGenerativeAIEmbeddings(model = "models/embedding-001", google_api_key='AIzaSyAZ6yZYDu8cbdpm1_4XmvWLQIy7PkUR5-M')
|
| 40 |
vector_store = FAISS.from_texts(text_chunks, embedding=embeddings)
|
| 41 |
vector_store.save_local("faiss_index")
|
| 42 |
|