Xu Ma commited on
Commit
9561ef3
1 Parent(s): 4996f01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -93,9 +93,19 @@ def parse_args():
93
 
94
 
95
 
 
 
 
 
 
 
 
 
 
96
 
97
  cfg_arg = parse_args()
98
  def run_live(img, experiment_id, cfg_arg=cfg_arg):
 
99
  main_func(img, experiment_id, cfg_arg=cfg_arg)
100
  return 0, 1
101
 
@@ -276,7 +286,7 @@ def main(args):
276
  "add [1, 1, 1, 1, 1] total 5 paths",
277
  "add [1, 1, 1, 1, 1, 1, 1, 1] total 8 paths",
278
  "add [1,2,4,8,16,32, ...] total 128 paths",
279
- "add [1,2,4,8,16,32, ...] total 256 paths"], type="value", default="add [1,1,1,1,1] paths", label="Path Adding Scheduler"
280
  )
281
 
282
  # inputs
 
93
 
94
 
95
 
96
+ def app_experiment_change(experiment_id):
97
+ if experiment_id == "add [1, 1, 1, 1, 1] total 5 paths":
98
+ return "experiment_5x1"
99
+ elif experiment_id == "add [1, 1, 1, 1, 1, 1, 1, 1] total 8 paths":
100
+ return "experiment_8x1"
101
+ elif experiment_id == "add [1,2,4,8,16,32, ...] total 128 paths":
102
+ return "experiment_exp2_128"
103
+ elif experiment_id == "add [1,2,4,8,16,32, ...] total 256 paths":
104
+ return "experiment_exp2_256"
105
 
106
  cfg_arg = parse_args()
107
  def run_live(img, experiment_id, cfg_arg=cfg_arg):
108
+ experiment_id = app_experiment_change(experiment_id)
109
  main_func(img, experiment_id, cfg_arg=cfg_arg)
110
  return 0, 1
111
 
 
286
  "add [1, 1, 1, 1, 1] total 5 paths",
287
  "add [1, 1, 1, 1, 1, 1, 1, 1] total 8 paths",
288
  "add [1,2,4,8,16,32, ...] total 128 paths",
289
+ "add [1,2,4,8,16,32, ...] total 256 paths"], type="value", default="add [1, 1, 1, 1, 1] total 5 paths", label="Path Adding Scheduler"
290
  )
291
 
292
  # inputs