audrey06100 commited on
Commit
93b494a
·
1 Parent(s): 1101e3a
Files changed (1) hide show
  1. app.py +0 -6
app.py CHANGED
@@ -70,7 +70,6 @@ init_js = """
70
  attribute = "name";
71
  }else return;
72
 
73
-
74
  // add figure of the input montage
75
  document.querySelector(selector).style.cssText = `
76
  position: relative;
@@ -98,7 +97,6 @@ init_js = """
98
  channel = stage1_info.missingTemplates[0];
99
  left = channel_info.templateDict[channel].css_position[0];
100
  bottom = channel_info.templateDict[channel].css_position[1];
101
-
102
  let dot_rule = `
103
  ${selector}::before {
104
  content: "";
@@ -172,7 +170,6 @@ update_js = """
172
  channel = stage1_info.missingTemplates[cnt-1];
173
  left = channel_info.templateDict[channel].css_position[0];
174
  bottom = channel_info.templateDict[channel].css_position[1];
175
-
176
  let dot_rule = `
177
  ${selector}::before {
178
  content: "";
@@ -425,7 +422,6 @@ with gr.Blocks() as demo:
425
  mapped_img : gr.Image(visible=False),
426
  next_btn : gr.Button(visible=False),
427
  out_json_file : gr.File(filename, visible=True)}
428
-
429
  # step1 to step2
430
  elif in_num > matched_num:
431
  md = """
@@ -459,7 +455,6 @@ with gr.Blocks() as demo:
459
  clear_btn : gr.Button(visible=True),
460
  step2_btn : gr.Button(visible=True),
461
  next_btn : gr.Button(visible=False)}
462
-
463
  # step1 to step3-1
464
  elif in_num == matched_num:
465
  md = """
@@ -534,7 +529,6 @@ with gr.Blocks() as demo:
534
 
535
  # =======================================step3-1========================================
536
  elif stage1_info["state"] == "step3-select-method":
537
-
538
  # step3-1 to step4
539
  if fillmode == "zero":
540
  md = """
 
70
  attribute = "name";
71
  }else return;
72
 
 
73
  // add figure of the input montage
74
  document.querySelector(selector).style.cssText = `
75
  position: relative;
 
97
  channel = stage1_info.missingTemplates[0];
98
  left = channel_info.templateDict[channel].css_position[0];
99
  bottom = channel_info.templateDict[channel].css_position[1];
 
100
  let dot_rule = `
101
  ${selector}::before {
102
  content: "";
 
170
  channel = stage1_info.missingTemplates[cnt-1];
171
  left = channel_info.templateDict[channel].css_position[0];
172
  bottom = channel_info.templateDict[channel].css_position[1];
 
173
  let dot_rule = `
174
  ${selector}::before {
175
  content: "";
 
422
  mapped_img : gr.Image(visible=False),
423
  next_btn : gr.Button(visible=False),
424
  out_json_file : gr.File(filename, visible=True)}
 
425
  # step1 to step2
426
  elif in_num > matched_num:
427
  md = """
 
455
  clear_btn : gr.Button(visible=True),
456
  step2_btn : gr.Button(visible=True),
457
  next_btn : gr.Button(visible=False)}
 
458
  # step1 to step3-1
459
  elif in_num == matched_num:
460
  md = """
 
529
 
530
  # =======================================step3-1========================================
531
  elif stage1_info["state"] == "step3-select-method":
 
532
  # step3-1 to step4
533
  if fillmode == "zero":
534
  md = """