Spaces:
Sleeping
Sleeping
SharathReddy
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,6 @@ import os
|
|
15 |
# Set the GOOGLE_API_KEY environment variable
|
16 |
os.environ["GOOGLE_API_KEY"] = "AIzaSyBqmjtc0uhcz1cJ_3r5vnWpBzL9UGoeLBA"
|
17 |
|
18 |
-
# Now import the library
|
19 |
-
from genai import GoogleGenerativeAIEmbeddings
|
20 |
|
21 |
# Create an instance of GoogleGenerativeAIEmbeddings without specifying the API key
|
22 |
embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")
|
|
|
15 |
# Set the GOOGLE_API_KEY environment variable
|
16 |
os.environ["GOOGLE_API_KEY"] = "AIzaSyBqmjtc0uhcz1cJ_3r5vnWpBzL9UGoeLBA"
|
17 |
|
|
|
|
|
18 |
|
19 |
# Create an instance of GoogleGenerativeAIEmbeddings without specifying the API key
|
20 |
embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")
|