basantcuraj commited on
Commit
8d47574
·
verified ·
1 Parent(s): a6e51db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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