Spaces:
Build error
Build error
Chandranshu Jain
commited on
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")
|