audrey06100 commited on
Commit
db94983
·
1 Parent(s): 9361bcd
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -224,7 +224,7 @@ with gr.Blocks() as demo:
224
  gr.Markdown("# 1.Channel Mapping")
225
  # ---------------------input---------------------
226
  in_loc_file = gr.File(label="Channel locations (.loc, .locs, .xyz, .sfp, .txt)",
227
- file_types=['.loc', 'locs', '.xyz', '.sfp', '.txt'])
228
  map_btn = gr.Button("Map")
229
  # ---------------------output--------------------
230
  desc_md = gr.Markdown(visible=False)
@@ -232,7 +232,7 @@ with gr.Blocks() as demo:
232
  # --------------------mapping--------------------
233
  # step1 : initial matching and scaling
234
  with gr.Row():
235
- tpl_img = gr.Image('./template_montage.png', label="Template montage", visible=False)
236
  mapped_img = gr.Image(label="Matching results", visible=False)
237
  # step2 : forward unmatched input channels to empty template channels
238
  radio_group = gr.Radio(elem_id="radio-group", visible=False)
@@ -322,7 +322,7 @@ with gr.Blocks() as demo:
322
  "mappingData" : [
323
  {
324
  "newOrder" : None,
325
- "fillFlags" : None
326
  #"channelUsageNum" : None
327
  }
328
  ]
 
224
  gr.Markdown("# 1.Channel Mapping")
225
  # ---------------------input---------------------
226
  in_loc_file = gr.File(label="Channel locations (.loc, .locs, .xyz, .sfp, .txt)",
227
+ file_types=[".loc", "locs", ".xyz", ".sfp", ".txt"])
228
  map_btn = gr.Button("Map")
229
  # ---------------------output--------------------
230
  desc_md = gr.Markdown(visible=False)
 
232
  # --------------------mapping--------------------
233
  # step1 : initial matching and scaling
234
  with gr.Row():
235
+ tpl_img = gr.Image("./template_montage.png", label="Template montage", visible=False)
236
  mapped_img = gr.Image(label="Matching results", visible=False)
237
  # step2 : forward unmatched input channels to empty template channels
238
  radio_group = gr.Radio(elem_id="radio-group", visible=False)
 
322
  "mappingData" : [
323
  {
324
  "newOrder" : None,
325
+ "fillFlags" : None,
326
  #"channelUsageNum" : None
327
  }
328
  ]