Chandranshu Jain commited on
Commit
13f22e4
1 Parent(s): cc03242

Rename app.py to app2.py

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