Xu Ma commited on
Commit
6c72115
1 Parent(s): 69fde70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -95,9 +95,9 @@ def parse_args():
95
 
96
 
97
  def app_experiment_change(experiment_id):
98
- if experiment_id == "add [1, 1, 1, 1, 1] total 5 paths":
99
  return "experiment_5x1"
100
- elif experiment_id == "add [1, 1, 1, 1, 1, 1, 1, 1] total 8 paths":
101
  return "experiment_8x1"
102
  elif experiment_id == "add [1,2,4,8,16,32, ...] total 128 paths":
103
  return "experiment_exp2_128"
@@ -287,15 +287,15 @@ def main(args):
287
  gr.close_all()
288
  # -------------------Inputs-------------------
289
  inputs_update = gr.inputs.Slider(
290
- label="Please randomly slide the button to update vectorized output",
291
  default=50, maximum=100, minimum=1, step=1)
292
  inputs_img = gr.inputs.Image(type="pil", label="Input Image")
293
  experiment_id = gr.inputs.Radio(
294
  choices=[
295
- "add [1, 1, 1, 1, 1] total 5 paths",
296
- "add [1, 1, 1, 1, 1, 1, 1, 1] total 8 paths",
297
  "add [1,2,4,8,16,32, ...] total 128 paths",
298
- "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"
299
  )
300
 
301
  # inputs
@@ -319,11 +319,11 @@ def main(args):
319
  examples = [
320
  [
321
  "./examples/1.png",
322
- "add [1, 1, 1, 1, 1] total 5 paths",
323
  ],
324
  [
325
  "./examples/2.png",
326
- "add [1, 1, 1, 1, 1] total 5 paths",
327
  ],
328
  [
329
  "./examples/3.jpg",
@@ -335,7 +335,7 @@ def main(args):
335
  ],
336
  [
337
  "./examples/5.png",
338
- "add [1, 1, 1, 1, 1] total 5 paths",
339
  ],
340
  ]
341
 
 
95
 
96
 
97
  def app_experiment_change(experiment_id):
98
+ if experiment_id == "add [1, 1, 1, 1, 1] total 5 paths one by one":
99
  return "experiment_5x1"
100
+ elif experiment_id == "add [1, 1, 1, 1, 1, 1, 1, 1] total 8 paths one by one":
101
  return "experiment_8x1"
102
  elif experiment_id == "add [1,2,4,8,16,32, ...] total 128 paths":
103
  return "experiment_exp2_128"
 
287
  gr.close_all()
288
  # -------------------Inputs-------------------
289
  inputs_update = gr.inputs.Slider(
290
+ label="",
291
  default=50, maximum=100, minimum=1, step=1)
292
  inputs_img = gr.inputs.Image(type="pil", label="Input Image")
293
  experiment_id = gr.inputs.Radio(
294
  choices=[
295
+ "add [1, 1, 1, 1, 1] total 5 paths one by one",
296
+ "add [1, 1, 1, 1, 1, 1, 1, 1] total 8 paths one by one",
297
  "add [1,2,4,8,16,32, ...] total 128 paths",
298
+ "add [1,2,4,8,16,32, ...] total 256 paths"], type="value", default="add [1, 1, 1, 1, 1] total 5 paths one by one", label="Path Adding Scheduler"
299
  )
300
 
301
  # inputs
 
319
  examples = [
320
  [
321
  "./examples/1.png",
322
+ "add [1, 1, 1, 1, 1] total 5 paths one by one",
323
  ],
324
  [
325
  "./examples/2.png",
326
+ "add [1, 1, 1, 1, 1] total 5 paths one by one",
327
  ],
328
  [
329
  "./examples/3.jpg",
 
335
  ],
336
  [
337
  "./examples/5.png",
338
+ "add [1, 1, 1, 1, 1] total 5 paths one by one",
339
  ],
340
  ]
341