Spaces:
Configuration error
Configuration error
移除usage_tips
Browse files
app.py
CHANGED
|
@@ -64,8 +64,8 @@ def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
|
|
| 64 |
return seed
|
| 65 |
|
| 66 |
|
| 67 |
-
def remove_tips():
|
| 68 |
-
|
| 69 |
|
| 70 |
|
| 71 |
# def get_example():
|
|
@@ -270,7 +270,8 @@ def generate_image(
|
|
| 270 |
generator=generator,
|
| 271 |
).images
|
| 272 |
|
| 273 |
-
return images[0]
|
|
|
|
| 274 |
|
| 275 |
|
| 276 |
### Description
|
|
@@ -391,14 +392,14 @@ with gr.Blocks(css=css) as demo:
|
|
| 391 |
|
| 392 |
with gr.Column():
|
| 393 |
output_image = gr.Image(label="Generated Image")
|
| 394 |
-
usage_tips = gr.Markdown(label="Usage tips of InstantID", value=tips, visible=False)
|
| 395 |
|
| 396 |
submit.click(
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
|
| 401 |
-
).then(
|
| 402 |
fn=randomize_seed_fn,
|
| 403 |
inputs=[seed, randomize_seed],
|
| 404 |
outputs=seed,
|
|
@@ -424,7 +425,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 424 |
guidance_scale,
|
| 425 |
seed,
|
| 426 |
],
|
| 427 |
-
outputs=
|
| 428 |
)
|
| 429 |
|
| 430 |
# gr.Examples(
|
|
|
|
| 64 |
return seed
|
| 65 |
|
| 66 |
|
| 67 |
+
# def remove_tips():
|
| 68 |
+
# return gr.update(visible=False)
|
| 69 |
|
| 70 |
|
| 71 |
# def get_example():
|
|
|
|
| 270 |
generator=generator,
|
| 271 |
).images
|
| 272 |
|
| 273 |
+
return images[0]
|
| 274 |
+
# return images[0], gr.update(visible=True)
|
| 275 |
|
| 276 |
|
| 277 |
### Description
|
|
|
|
| 392 |
|
| 393 |
with gr.Column():
|
| 394 |
output_image = gr.Image(label="Generated Image")
|
| 395 |
+
# usage_tips = gr.Markdown(label="Usage tips of InstantID", value=tips, visible=False)
|
| 396 |
|
| 397 |
submit.click(
|
| 398 |
+
# fn=remove_tips,
|
| 399 |
+
# outputs=usage_tips,
|
| 400 |
+
# queue=False,
|
| 401 |
+
# api_name=False,
|
| 402 |
+
# ).then(
|
| 403 |
fn=randomize_seed_fn,
|
| 404 |
inputs=[seed, randomize_seed],
|
| 405 |
outputs=seed,
|
|
|
|
| 425 |
guidance_scale,
|
| 426 |
seed,
|
| 427 |
],
|
| 428 |
+
outputs=output_image,
|
| 429 |
)
|
| 430 |
|
| 431 |
# gr.Examples(
|