Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ config = {
|
|
15 |
"top_p": 1.0,
|
16 |
}
|
17 |
|
18 |
-
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 |
|