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