anmolsahai commited on
Commit
c0ecf8a
1 Parent(s): 12e19a1
Files changed (1) hide show
  1. app.py +2 -1
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
- aiplatform_v1.init(project="akroda", location="us-central1")
 
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 = [