Skip to content

Commit 6b2d938

Browse files
authored
docs: Update sample with feedback from b/191251050 (#818)
1 parent 95dbd60 commit 6b2d938

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

samples/model-builder/create_and_import_dataset_image_sample.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,25 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
16+
# [START aiplatform_sdk_create_and_import_dataset_image_sample]
1517
from typing import List, Union
1618

1719
from google.cloud import aiplatform
1820

1921

20-
# [START aiplatform_sdk_create_and_import_dataset_image_sample]
2122
def create_and_import_dataset_image_sample(
2223
project: str,
2324
location: str,
2425
display_name: str,
2526
src_uris: Union[str, List[str]],
2627
sync: bool = True,
2728
):
29+
"""
30+
src_uris -- a string or list of strings, e.g.
31+
["gs://bucket1/source1.jsonl", "gs://bucket7/source4.jsonl"]
32+
"""
33+
2834
aiplatform.init(project=project, location=location)
2935

3036
ds = aiplatform.ImageDataset.create(

0 commit comments

Comments
 (0)