Spaces:
Configuration error
Configuration error
呈现风格模板
Browse files
app.py
CHANGED
|
@@ -345,7 +345,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 345 |
)
|
| 346 |
|
| 347 |
submit = gr.Button("Submit", variant="primary")
|
| 348 |
-
|
| 349 |
style = gr.Dropdown(label="Style template", choices=STYLE_NAMES, value=DEFAULT_STYLE_NAME)
|
| 350 |
|
| 351 |
# strength
|
|
@@ -396,6 +396,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 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(
|
|
@@ -432,7 +433,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 432 |
outputs=output_image,
|
| 433 |
)
|
| 434 |
|
| 435 |
-
|
| 436 |
fn=get_style_lists,
|
| 437 |
outputs=style_lists,
|
| 438 |
queue=False,
|
|
|
|
| 345 |
)
|
| 346 |
|
| 347 |
submit = gr.Button("Submit", variant="primary")
|
| 348 |
+
style_event = gr.Checkbox(label="display the style templates", value=open_template_lists)
|
| 349 |
style = gr.Dropdown(label="Style template", choices=STYLE_NAMES, value=DEFAULT_STYLE_NAME)
|
| 350 |
|
| 351 |
# strength
|
|
|
|
| 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(
|
|
|
|
| 433 |
outputs=output_image,
|
| 434 |
)
|
| 435 |
|
| 436 |
+
style_event.input(
|
| 437 |
fn=get_style_lists,
|
| 438 |
outputs=style_lists,
|
| 439 |
queue=False,
|