anmolsahai commited on
Commit
025684d
1 Parent(s): c0ecf8a
Files changed (1) hide show
  1. app.py +2 -2
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-aiplatform.googleapis.com"}
24
- client = aiplatform.gapic.PipelineServiceClient(client_options=client_options)
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 = [