Spaces:
Configuration error
Configuration 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 |
-
def get_style_lists() -> list:
|
| 68 |
-
|
| 69 |
|
| 70 |
|
| 71 |
# def remove_tips():
|
|
@@ -396,7 +396,6 @@ with gr.Blocks(css=css) as demo:
|
|
| 396 |
|
| 397 |
with gr.Column():
|
| 398 |
output_image = gr.Image(label="Generated Image")
|
| 399 |
-
style_lists = gr.Markdown(label="Display Style Templates of InstantID", value=STYLE_NAMES, visible=False)
|
| 400 |
# usage_tips = gr.Markdown(label="Usage tips of InstantID", value=tips, visible=False)
|
| 401 |
|
| 402 |
submit.click(
|
|
@@ -434,8 +433,8 @@ with gr.Blocks(css=css) as demo:
|
|
| 434 |
)
|
| 435 |
|
| 436 |
style_event.input(
|
| 437 |
-
fn=
|
| 438 |
-
outputs=
|
| 439 |
queue=False,
|
| 440 |
)
|
| 441 |
|
|
|
|
| 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():
|
|
|
|
| 396 |
|
| 397 |
with gr.Column():
|
| 398 |
output_image = gr.Image(label="Generated Image")
|
|
|
|
| 399 |
# usage_tips = gr.Markdown(label="Usage tips of InstantID", value=tips, visible=False)
|
| 400 |
|
| 401 |
submit.click(
|
|
|
|
| 433 |
)
|
| 434 |
|
| 435 |
style_event.input(
|
| 436 |
+
fn=None,
|
| 437 |
+
outputs=STYLE_NAMES,
|
| 438 |
queue=False,
|
| 439 |
)
|
| 440 |
|