Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Mingxin Zheng <[email protected]>
  • Loading branch information
mingxin-zheng committed Oct 20, 2024
1 parent d285fd0 commit bae32cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/gradio_monai_vila2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ def update_image_selection(selected_image, sv: SessionVariables, slice_index=Non
img_file = CACHED_IMAGES.get(sv.image_url, None)

if sv.image_url is None:
return None, sv, [[""]]
return None, sv, gr.Slider(0, 2, 1, 0, visible=False), [[""]]

if sv.temp_working_dir is None:
sv.temp_working_dir = tempfile.mkdtemp()
Expand Down

0 comments on commit bae32cf

Please sign in to comment.