LPDoctor commited on
Commit
e022ec9
·
verified ·
1 Parent(s): e2fcaf4

冷启动获得风格模板列表

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -64,8 +64,8 @@ def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
64
  seed = random.randint(0, MAX_SEED)
65
  return seed
66
 
67
- # def get_style_lists() -> list:
68
- # return STYLE_NAMES
69
 
70
 
71
  # def remove_tips():
@@ -433,10 +433,9 @@ with gr.Blocks(css=css) as demo:
433
  )
434
 
435
  style_event.input(
436
- fn=None,
437
  outputs=STYLE_NAMES,
438
  queue=False,
439
- api_name=get_style_names,
440
  )
441
 
442
  # gr.Examples(
 
64
  seed = random.randint(0, MAX_SEED)
65
  return seed
66
 
67
+ def get_style_lists() -> list:
68
+ return gr.update(visible=False)
69
 
70
 
71
  # def remove_tips():
 
433
  )
434
 
435
  style_event.input(
436
+ fn=get_style_lists,
437
  outputs=STYLE_NAMES,
438
  queue=False,
 
439
  )
440
 
441
  # gr.Examples(