Spaces:
Sleeping
Sleeping
anmolsahai
commited on
Commit
•
c0ecf8a
1
Parent(s):
12e19a1
try
Browse files
app.py
CHANGED
@@ -20,7 +20,8 @@ if credentials_json:
|
|
20 |
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = credentials_path
|
21 |
|
22 |
# Initialize the Google AI Platform
|
23 |
-
|
|
|
24 |
|
25 |
# Define the documents as dictionaries, ensuring correct padding
|
26 |
documents = [
|
|
|
20 |
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = credentials_path
|
21 |
|
22 |
# Initialize the Google AI Platform
|
23 |
+
client_options = {"api_endpoint": "us-central1-aiplatform.googleapis.com"}
|
24 |
+
client = aiplatform.gapic.PipelineServiceClient(client_options=client_options)
|
25 |
|
26 |
# Define the documents as dictionaries, ensuring correct padding
|
27 |
documents = [
|