Skip to content

Commit

Permalink
docs: Update sample with feedback from b/191251050 (#818)
Browse files Browse the repository at this point in the history
  • Loading branch information
kweinmeister committed Nov 6, 2021
1 parent 95dbd60 commit 6b2d938
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -12,19 +12,25 @@
# See the License for the specific language governing permissions and
# limitations under the License.


# [START aiplatform_sdk_create_and_import_dataset_image_sample]
from typing import List, Union

from google.cloud import aiplatform


# [START aiplatform_sdk_create_and_import_dataset_image_sample]
def create_and_import_dataset_image_sample(
project: str,
location: str,
display_name: str,
src_uris: Union[str, List[str]],
sync: bool = True,
):
"""
src_uris -- a string or list of strings, e.g.
["gs://bucket1/source1.jsonl", "gs://bucket7/source4.jsonl"]
"""

aiplatform.init(project=project, location=location)

ds = aiplatform.ImageDataset.create(
Expand Down

0 comments on commit 6b2d938

Please sign in to comment.