File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -1687,10 +1687,10 @@ def raw_predict(
1687
1687
"""
1688
1688
if not self .authorized_session :
1689
1689
self .credentials ._scopes = constants .base .DEFAULT_AUTHED_SCOPES
1690
+ self .raw_predict_request_url = f"https://{ self .location } -{ constants .base .API_BASE_PATH } /v1/projects/{ self .project } /locations/{ self .location } /endpoints/{ self .name } :rawPredict"
1690
1691
self .authorized_session = google_auth_requests .AuthorizedSession (
1691
1692
self .credentials
1692
1693
)
1693
- self .raw_predict_request_url = f"https://{ self .location } -{ constants .base .API_BASE_PATH } /v1/projects/{ self .project } /locations/{ self .location } /endpoints/{ self .name } :rawPredict"
1694
1694
1695
1695
return self .authorized_session .post (
1696
1696
url = self .raw_predict_request_url , data = body , headers = headers
You can’t perform that action at this time.
0 commit comments