bstraehle commited on
Commit
bf362b5
·
verified ·
1 Parent(s): 596ea3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,7 +15,7 @@ config = {
15
  "top_p": 1.0,
16
  }
17
 
18
- credentials = "BringYourOwn" #json.loads(credentials)
19
 
20
  from google.oauth2 import service_account
21
  credentials = service_account.Credentials.from_service_account_info(credentials)
@@ -24,7 +24,7 @@ if credentials.expired:
24
  credentials.refresh(Request())
25
 
26
  vertexai.init(location = "us-central1",
27
- credentials = credentials,
28
  project = project
29
  )
30
 
 
15
  "top_p": 1.0,
16
  }
17
 
18
+ credentials = json.loads(credentials)
19
 
20
  from google.oauth2 import service_account
21
  credentials = service_account.Credentials.from_service_account_info(credentials)
 
24
  credentials.refresh(Request())
25
 
26
  vertexai.init(location = "us-central1",
27
+ credentials = "BringYourOwn", #credentials,
28
  project = project
29
  )
30