MCPcopy Index your code
hub / github.com/Kaggle/docker-python / init_ucaip

Function init_ucaip

patches/kaggle_gcp.py:297–311  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

295 return language
296
297def init_ucaip():
298 from google.cloud import aiplatform
299 if not is_user_secrets_token_set():
300 return
301
302 from kaggle_gcp import get_integrations
303 if not get_integrations().has_cloudai():
304 return
305
306 from kaggle_secrets import GcpTarget
307 from kaggle_gcp import KaggleKernelCredentials
308 kaggle_kernel_credentials = KaggleKernelCredentials(target=GcpTarget.CLOUDAI)
309
310 # Patch the ucaip init method, this flows down to all ucaip services
311 monkeypatch_aiplatform_init(aiplatform, kaggle_kernel_credentials)
312
313def init_video_intelligence():
314 from google.cloud import videointelligence

Callers 2

initFunction · 0.85

Calls 5

get_integrationsFunction · 0.90
has_cloudaiMethod · 0.80

Tested by 1