Für mehr Kontext habe ich die folgenden Befehle ausgeführt: < /p>
Befehlszeilenschnittstelle < /strong> < /p>
Code: Select all
gcloud config set project
gcloud config set billing/quota_project
gcloud auth login
gcloud auth application-default login
Code: Select all
from google.cloud import aiplatform
PROJECT_ID =
LOCATION_ID =
aiplatform.init(
project = PROJECT_ID,
location = LOCATION_ID,
)
last_endpoint = aiplatform.Endpoint.list(order_by="update_time desc")[0]