Spaces:
Sleeping
Sleeping
Chandranshu Jain
commited on
Commit
•
0ee6b9d
1
Parent(s):
f03dfea
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def text_splitter(text):
|
|
41 |
chunks=text_splitter.split_text(text)
|
42 |
return chunks
|
43 |
|
44 |
-
os.
|
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")
|