Spaces:
Sleeping
Sleeping
西牧慧
commited on
Commit
·
fe59750
1
Parent(s):
0840a36
update: gr.Interface
Browse files- src/parcellation.py +2 -2
src/parcellation.py
CHANGED
@@ -131,11 +131,11 @@ def run_inference(input_file, only_face_cropping, only_skull_stripping):
|
|
131 |
iface = gr.Interface(
|
132 |
fn=run_inference,
|
133 |
inputs=[
|
134 |
-
gr.
|
135 |
gr.Checkbox(label="Only Face Cropping", value=False),
|
136 |
gr.Checkbox(label="Only Skull Stripping", value=False),
|
137 |
],
|
138 |
-
outputs=gr.
|
139 |
title="OpenMAP-T1 Inference",
|
140 |
description="学習済みモデルは model/ に配置されています。\nアップロードされたMRI画像に対してOpenMAP-T1の処理を行い、パーセル結果を返します。",
|
141 |
)
|
|
|
131 |
iface = gr.Interface(
|
132 |
fn=run_inference,
|
133 |
inputs=[
|
134 |
+
gr.Image(label="Input NIfTI File (.nii or .nii.gz)"),
|
135 |
gr.Checkbox(label="Only Face Cropping", value=False),
|
136 |
gr.Checkbox(label="Only Skull Stripping", value=False),
|
137 |
],
|
138 |
+
outputs=gr.Image(label="Output Parcellated NIfTI File"),
|
139 |
title="OpenMAP-T1 Inference",
|
140 |
description="学習済みモデルは model/ に配置されています。\nアップロードされたMRI画像に対してOpenMAP-T1の処理を行い、パーセル結果を返します。",
|
141 |
)
|