Skip to content
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

Merged
merged 3 commits into from
Jan 6, 2021
Merged

GCP ML services integration. #925

merged 3 commits into from
Jan 6, 2021

Conversation

kornelregius
Copy link
Contributor

Add GCP integrations with the latest client major versions of

  • Cloud Translation V2 (basic) and V3 (advanced)
  • Natural language V2
  • Vision V2
  • Video intelligence V2

ticket: b/175030896

Do not merge until corresponding GCP integration controller version released!

Video intelligence GCP integrations.
@kornelregius kornelregius changed the title GCP ML services integrations. GCP ML services integration. Dec 20, 2020
Copy link
Contributor

@Philmod Philmod left a 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 Show resolved Hide resolved
return translate_v3
from kaggle_secrets import GcpTarget
kernel_credentials = KaggleKernelCredentials(target=GcpTarget.TRANSLATION)
monkeypatch_client(translate_v3.TranslationServiceClient,kernel_credentials)
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in ef87f07


from kaggle_secrets import GcpTarget
kernel_credentials = KaggleKernelCredentials(target=GcpTarget.NATURAL_LANGUAGE)
monkeypatch_client(language.LanguageServiceClient,kernel_credentials)
Copy link
Contributor

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


from kaggle_secrets import GcpTarget
kernel_credentials = KaggleKernelCredentials(target=GcpTarget.VISION)
monkeypatch_client(vision.ImageAnnotatorClient,kernel_credentials)
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in ef87f07

'google.cloud.videointelligence_v1',
'google.cloud.vision',
'google.cloud.vision_v1',
]
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in ef87f07

@Philmod Philmod requested a review from rosbo December 21, 2020 21:02
@rosbo
Copy link
Contributor

rosbo commented Jan 5, 2021

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

@rosbo
Copy link
Contributor

rosbo commented Jan 5, 2021

@kornelregius I merged #929 which fixes the master build.

@kornelregius
Copy link
Contributor Author

@rosbo rosbo merged commit b9bd8f0 into Kaggle:master Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants