audrey06100 commited on
Commit
b221fea
·
1 Parent(s): ba1c502
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -291,7 +291,7 @@ with gr.Blocks() as demo:
291
 
292
  # +========================================================================================+
293
  # | Stage1: channel mapping |
294
- # +========================================================================================+
295
  def reset_all(in_loc):
296
  # establish a new folder for the current session
297
  rootpath = os.path.dirname(str(in_loc))
@@ -438,7 +438,6 @@ with gr.Blocks() as demo:
438
  mapped_img : gr.Image(visible=False),
439
  next_btn : gr.Button(visible=False),
440
  out_json_file : gr.File(filename, visible=True)}
441
- #run_btn : gr.Button(interactive=True)}
442
 
443
  # step1 to step2
444
  # matched_num < 30, and there're still some unmatched in_channels
@@ -539,7 +538,6 @@ with gr.Blocks() as demo:
539
  out_json_file : gr.File(filename, visible=True),
540
  clear_btn : gr.Button(visible=False),
541
  next_btn : gr.Button(visible=False)}
542
- #run_btn : gr.Button(interactive=True)}
543
  # step2 to step3-1
544
  else:
545
  md = """
@@ -580,7 +578,6 @@ with gr.Blocks() as demo:
580
  in_fillmode : gr.Dropdown(visible=False),
581
  fillmode_btn : gr.Button(visible=False),
582
  out_json_file : gr.File(filename, visible=True)}
583
- #run_btn : gr.Button(interactive=True)}
584
  # step3-1 to step3-2
585
  elif fillmode == "mean":
586
  md = """
@@ -654,7 +651,6 @@ with gr.Blocks() as demo:
654
  chkbox_group : gr.CheckboxGroup(visible=False),
655
  next_btn : gr.Button(visible=False),
656
  out_json_file : gr.File(filename, visible=True)}
657
- #run_btn : gr.Button(interactive=True)}
658
 
659
  next_btn.click(
660
  fn = init_next_step,
 
291
 
292
  # +========================================================================================+
293
  # | Stage1: channel mapping |
294
+ # +========================================================================================+
295
  def reset_all(in_loc):
296
  # establish a new folder for the current session
297
  rootpath = os.path.dirname(str(in_loc))
 
438
  mapped_img : gr.Image(visible=False),
439
  next_btn : gr.Button(visible=False),
440
  out_json_file : gr.File(filename, visible=True)}
 
441
 
442
  # step1 to step2
443
  # matched_num < 30, and there're still some unmatched in_channels
 
538
  out_json_file : gr.File(filename, visible=True),
539
  clear_btn : gr.Button(visible=False),
540
  next_btn : gr.Button(visible=False)}
 
541
  # step2 to step3-1
542
  else:
543
  md = """
 
578
  in_fillmode : gr.Dropdown(visible=False),
579
  fillmode_btn : gr.Button(visible=False),
580
  out_json_file : gr.File(filename, visible=True)}
 
581
  # step3-1 to step3-2
582
  elif fillmode == "mean":
583
  md = """
 
651
  chkbox_group : gr.CheckboxGroup(visible=False),
652
  next_btn : gr.Button(visible=False),
653
  out_json_file : gr.File(filename, visible=True)}
 
654
 
655
  next_btn.click(
656
  fn = init_next_step,