diff --git a/README.md b/README.md index 5805fca..d65cef9 100644 --- a/README.md +++ b/README.md @@ -376,7 +376,7 @@ To Form a pipeine, it required a `start` operator and a `end` operator, we have ```python # create start operator start_operator_component = create_start_operator( - {"metadata": {"input": {"title": "input", "type": "image"}}} + {"metadata": {"input": {"title": "input", "type": "string", "instillFormat": "image/*"}}} ) # create end operator end_operator_component = create_end_operator( diff --git a/integration-test.py b/integration-test.py index 8d4cd0c..c8d1ad7 100644 --- a/integration-test.py +++ b/integration-test.py @@ -228,7 +228,7 @@ ) start_operator_component = create_start_operator( - config={"metadata": {"input": {"title": "Input", "type": "text"}}} + config={"metadata": {"input": {"title": "Input", "type": "string", "instillFormat": "string"}}} ) end_operator_component = create_end_operator( @@ -258,7 +258,7 @@ "==================== instill model + csv pipeline ==================================================" ) start_operator_component = create_start_operator( - {"metadata": {"input": {"title": "input", "type": "image"}}} + {"metadata": {"input": {"title": "input", "type": "string", "instillFormat": "image/*"}}} ) instill_model_connector_component = instill_connector.create_component( @@ -315,7 +315,7 @@ ) start_operator_component = create_start_operator( - {"metadata": {"input": {"title": "input", "type": "image_array"}}} + {"metadata": {"input": {"title": "input", "type": "array", "instillFormat": "array:image/*", "items": {"type":"string"}}}} ) instill_model_component_mobilenet_1 = instill_connector.create_component( diff --git a/notebooks/story_pipeline.ipynb b/notebooks/story_pipeline.ipynb index 75d1ce2..1ff0252 100644 --- a/notebooks/story_pipeline.ipynb +++ b/notebooks/story_pipeline.ipynb @@ -224,7 +224,7 @@ "source": [ "# define your desired input, here we wish to input a list of base64 images\n", "start_operator_component = create_start_operator(\n", - " {\"metadata\": {\"input\": {\"title\": \"input\", \"type\": \"image_array\"}}}\n", + " {\"metadata\": {\"input\": {\"title\": \"input\", \"type\": \"array\", \"instillFormat\": \"array:image/*\", \"items\": {\"type\": \"string\"}}}}\n", ")\n", "\n", "# create a instill model component from the connector resource\n",