Spaces:
Runtime error
Runtime error
冷启动获得风格模板列表
Browse files
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 |
-
|
68 |
-
|
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=
|
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(
|