コード例 #1
0
ファイル: label_video_test.py プロジェクト: othercamb/GCP
def instruction():
    # create a temporary instruction
    instruction = testing_lib.create_instruction(
        PROJECT_ID, 'VIDEO', INSTRUCTION_GCS_URI)

    yield instruction

    # tear down
    testing_lib.delete_instruction(instruction.name)
コード例 #2
0
def instruction():
    # create a temporary instruction
    instruction = testing_lib.create_instruction(
        PROJECT_ID, datalabeling.DataType.VIDEO, INSTRUCTION_GCS_URI
    )

    yield instruction

    # tear down
    testing_lib.delete_instruction(instruction.name)