Skip to content

Commit

Permalink
chore(test,readme,notebooks): update config of start operator
Browse files Browse the repository at this point in the history
  • Loading branch information
donch1989 committed Nov 10, 2023
1 parent 2d83526 commit d5ca69b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
6 changes: 3 additions & 3 deletions integration-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
)

start_operator_component = create_start_operator(
config={"metadata": {"input": {"title": "Input", "type": "text"}}}
config={"metadata": {"input": {"title": "Input", "type": "string"}}}
)

end_operator_component = create_end_operator(
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion notebooks/story_pipeline.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d5ca69b

Please sign in to comment.