Skip to content

Commit ac3f290

Browse files
Fix template
1 parent d5fc2d7 commit ac3f290

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "Threshold",
2+
"name": "threshold",
33
"project_url": "https://github.com/scikit-image/scikit-image",
44
"python_version": "3.9"
55
}

‎src/imaging_server_kit/template/serverkit-{{cookiecutter.name}}/main.py‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@
1515
project_url="{{ cookiecutter.project_url }}",
1616
tags=["Segmentation"],
1717
parameters={
18-
"image": sk.Image(dimensionality=[2, 3]),
18+
"image": sk.Image(),
1919
"threshold": sk.Float(
2020
name="Threshold",
21-
default=0.5,
22-
min=0.0,
23-
max=1.0,
24-
step=0.1,
25-
auto_call=True,
21+
default=128,
22+
min=0,
23+
max=255,
24+
step=1,
25+
auto_call=False,
2626
),
2727
},
2828
samples=[
2929
{
3030
"image": Path(__file__).parent / "samples" / "blobs.tif",
31-
"threshold": 0.7,
31+
"threshold": 140,
3232
}
3333
],
3434
)

0 commit comments

Comments
 (0)