Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(test,readme,utils): update config of start operator #46

Merged
merged 1 commit into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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", "instillFormat": "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