Spaces:
Paused
Paused
update layout
Browse files
app.py
CHANGED
@@ -67,6 +67,8 @@ with gr.Blocks() as demo:
|
|
67 |
gr.HTML("""<a href="https://huggingface.co/spaces/ysharma/pix2pix-zero-01?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>Duplicate this Space and upgrade to a GPU for fast Inference & no queue<br>""")
|
68 |
|
69 |
with gr.Row():
|
|
|
|
|
70 |
gr.Examples(
|
71 |
examples=[os.path.join(os.path.dirname(__file__), "dog11.jpg"), os.path.join(os.path.dirname(__file__), "cat11.jpg")],
|
72 |
inputs=image_in,
|
@@ -74,8 +76,6 @@ with gr.Blocks() as demo:
|
|
74 |
fn=inversion,
|
75 |
cache_examples=True,
|
76 |
)
|
77 |
-
direction_html = gr.HTML(value="<h4>👈Click on this example or Upload a Dog or a Cat image to get started👉</h4>", visible=True)
|
78 |
-
image_in = gr.Image(type="pil", label="Start by uploading an image of a Cat or a Dog that you want to translate")
|
79 |
with gr.Column():
|
80 |
btn_inversion = gr.Button("Get input noise and image caption",visible=False )
|
81 |
with gr.Row():
|
|
|
67 |
gr.HTML("""<a href="https://huggingface.co/spaces/ysharma/pix2pix-zero-01?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>Duplicate this Space and upgrade to a GPU for fast Inference & no queue<br>""")
|
68 |
|
69 |
with gr.Row():
|
70 |
+
image_in = gr.Image(type="pil", label="Start by uploading an image of a Cat or a Dog that you want to translate")
|
71 |
+
direction_html = gr.HTML(value="<h4>👈Upload a Dog or a Cat image to get started or simply Click one of the examples👉</h4>", visible=True)
|
72 |
gr.Examples(
|
73 |
examples=[os.path.join(os.path.dirname(__file__), "dog11.jpg"), os.path.join(os.path.dirname(__file__), "cat11.jpg")],
|
74 |
inputs=image_in,
|
|
|
76 |
fn=inversion,
|
77 |
cache_examples=True,
|
78 |
)
|
|
|
|
|
79 |
with gr.Column():
|
80 |
btn_inversion = gr.Button("Get input noise and image caption",visible=False )
|
81 |
with gr.Row():
|