Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -63,18 +63,7 @@ with gr.Blocks(css=css) as demo:
|
|
63 |
gr.Markdown(f"""
|
64 |
# Bria's Image-Prompt-Adapter
|
65 |
""")
|
66 |
-
|
67 |
-
with gr.Row():
|
68 |
-
prompt = gr.Text(
|
69 |
-
label="Prompt",
|
70 |
-
show_label=True,
|
71 |
-
lines=1,
|
72 |
-
placeholder="Enter your prompt",
|
73 |
-
container=True,
|
74 |
-
info='For image variation, leave empty or try a prompt like: "high quality".'
|
75 |
-
)
|
76 |
-
run_button = gr.Button("Run", scale=0)
|
77 |
-
|
78 |
with gr.Row():
|
79 |
with gr.Column():
|
80 |
ip_adapter_image = gr.Image(label="IP-Adapter Image", type="pil")
|
@@ -86,7 +75,17 @@ with gr.Blocks(css=css) as demo:
|
|
86 |
step=0.05,
|
87 |
value=1.0,
|
88 |
)
|
89 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
with gr.Row():
|
91 |
width = gr.Slider(
|
92 |
label="Width",
|
@@ -102,6 +101,8 @@ with gr.Blocks(css=css) as demo:
|
|
102 |
step=32,
|
103 |
value=1024,
|
104 |
)
|
|
|
|
|
105 |
|
106 |
with gr.Accordion("Advanced Settings", open=False):
|
107 |
negative_prompt = gr.Text(
|
|
|
63 |
gr.Markdown(f"""
|
64 |
# Bria's Image-Prompt-Adapter
|
65 |
""")
|
66 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
with gr.Row():
|
68 |
with gr.Column():
|
69 |
ip_adapter_image = gr.Image(label="IP-Adapter Image", type="pil")
|
|
|
75 |
step=0.05,
|
76 |
value=1.0,
|
77 |
)
|
78 |
+
with gr.Column():
|
79 |
+
result = gr.Image(label="Result", elem_id="result")
|
80 |
+
prompt = gr.Text(
|
81 |
+
label="Prompt",
|
82 |
+
show_label=True,
|
83 |
+
lines=1,
|
84 |
+
placeholder="Enter your prompt",
|
85 |
+
container=True,
|
86 |
+
info='For image variation, leave empty or try a prompt like: "high quality".'
|
87 |
+
)
|
88 |
+
|
89 |
with gr.Row():
|
90 |
width = gr.Slider(
|
91 |
label="Width",
|
|
|
101 |
step=32,
|
102 |
value=1024,
|
103 |
)
|
104 |
+
run_button = gr.Button("Run", scale=0)
|
105 |
+
|
106 |
|
107 |
with gr.Accordion("Advanced Settings", open=False):
|
108 |
negative_prompt = gr.Text(
|