Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -465,24 +465,24 @@ with gr.Blocks(css="style.css") as demo:
|
|
465 |
net = gr.State()
|
466 |
gr.HTML(intro)
|
467 |
|
468 |
-
gr.Markdown(""" **Getting Started:** Sample a random identity or
|
469 |
**What Can You Do?** Generate new images of the identity & edit the encoded identity 👩->🧑🦳. See further instructions and tips at the bottom of the page.""")
|
470 |
with gr.Column():
|
471 |
with gr.Row():
|
472 |
with gr.Column():
|
473 |
-
gr.Markdown(""" ❶ Either a) sample a random identity by clicking `🎲 Sample random identity` **or** b) upload an image (optional - draw a mask over the head) then click `⬆️
|
474 |
input_image = gr.ImageEditor(elem_id="image_upload", type='pil', label="Reference Identity",
|
475 |
width=512, height=512)
|
476 |
|
477 |
with gr.Row():
|
478 |
sample = gr.Button("🎲 Sample new identity")
|
479 |
gr.Markdown("""or""")
|
480 |
-
invert_button = gr.Button("⬆️
|
481 |
|
482 |
|
483 |
|
484 |
with gr.Column():
|
485 |
-
gr.Markdown("""❷ Generate new images of the
|
486 |
gallery = gr.Image(label="Generated Image",height=512, width=512, interactive=False)
|
487 |
submit = gr.Button("Generate")
|
488 |
|
@@ -534,7 +534,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
534 |
gr.Markdown("""<div style="text-align: justify;"> After sampling a new model or inverting, you can download the model below.""")
|
535 |
|
536 |
with gr.Row():
|
537 |
-
file_output = gr.File(label="Download
|
538 |
|
539 |
|
540 |
|
|
|
465 |
net = gr.State()
|
466 |
gr.HTML(intro)
|
467 |
|
468 |
+
gr.Markdown(""" **Getting Started:** Sample a random identity or insert the identity from an image to get an identity-encoding model (or - upload a previously downloaded model using the `Uploading a model` option in `Advanced Options`).
|
469 |
**What Can You Do?** Generate new images of the identity & edit the encoded identity 👩->🧑🦳. See further instructions and tips at the bottom of the page.""")
|
470 |
with gr.Column():
|
471 |
with gr.Row():
|
472 |
with gr.Column():
|
473 |
+
gr.Markdown(""" ❶ Either a) sample a random identity by clicking `🎲 Sample random identity` **or** b) upload an image (optional - draw a mask over the head) then click `⬆️ Insert identity`""")
|
474 |
input_image = gr.ImageEditor(elem_id="image_upload", type='pil', label="Reference Identity",
|
475 |
width=512, height=512)
|
476 |
|
477 |
with gr.Row():
|
478 |
sample = gr.Button("🎲 Sample new identity")
|
479 |
gr.Markdown("""or""")
|
480 |
+
invert_button = gr.Button("⬆️ Insert identity")
|
481 |
|
482 |
|
483 |
|
484 |
with gr.Column():
|
485 |
+
gr.Markdown("""❷ Generate new images of the identity from the model & edit with the sliders""")
|
486 |
gallery = gr.Image(label="Generated Image",height=512, width=512, interactive=False)
|
487 |
submit = gr.Button("Generate")
|
488 |
|
|
|
534 |
gr.Markdown("""<div style="text-align: justify;"> After sampling a new model or inverting, you can download the model below.""")
|
535 |
|
536 |
with gr.Row():
|
537 |
+
file_output = gr.File(label="Download Model", container=True, interactive=False)
|
538 |
|
539 |
|
540 |
|