-
Notifications
You must be signed in to change notification settings - Fork 935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GCP ML services integration. #925
Conversation
Video intelligence GCP integrations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but let @rosbo reviews it too
patches/kaggle_gcp.py
Outdated
return translate_v3 | ||
from kaggle_secrets import GcpTarget | ||
kernel_credentials = KaggleKernelCredentials(target=GcpTarget.TRANSLATION) | ||
monkeypatch_client(translate_v3.TranslationServiceClient,kernel_credentials) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Whitespace after a comma http:https://go/pystyle#whitespace
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in ef87f07
patches/kaggle_gcp.py
Outdated
|
||
from kaggle_secrets import GcpTarget | ||
kernel_credentials = KaggleKernelCredentials(target=GcpTarget.NATURAL_LANGUAGE) | ||
monkeypatch_client(language.LanguageServiceClient,kernel_credentials) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Whitespace after a comma http:https://go/pystyle#whitespace
Same for following line
patches/kaggle_gcp.py
Outdated
|
||
from kaggle_secrets import GcpTarget | ||
kernel_credentials = KaggleKernelCredentials(target=GcpTarget.VISION) | ||
monkeypatch_client(vision.ImageAnnotatorClient,kernel_credentials) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Whitespace after a comma http:https://go/pystyle#whitespace
Same next line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in ef87f07
patches/sitecustomize.py
Outdated
'google.cloud.videointelligence_v1', | ||
'google.cloud.vision', | ||
'google.cloud.vision_v1', | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I think you have to align the ]
with _MODULES
, or put it after / on the same line as the last element
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in ef87f07
LGTM. The tests are failing for an orthogonal reason. I will fix master today and let you know when you can rebase your branch with the latest changes. After that, if all the build for your branch is green, you will be able to merge this. Thank you |
@kornelregius I merged #929 which fixes the |
Add GCP integrations with the latest client major versions of
ticket: b/175030896
Do not merge until corresponding GCP integration controller version released!