Chandranshu Jain commited on
Commit
0ee6b9d
1 Parent(s): f03dfea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def text_splitter(text):
41
  chunks=text_splitter.split_text(text)
42
  return chunks
43
 
44
- os.environ["GOOGLE_API_KEY"] = GOOGLE_API_KEY
45
 
46
  def embedding(chunk):
47
  embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")
 
41
  chunks=text_splitter.split_text(text)
42
  return chunks
43
 
44
+ GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY")
45
 
46
  def embedding(chunk):
47
  embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")