Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
fbdf399
1
Parent(s):
03a8244
Update app.py
Browse files
app.py
CHANGED
@@ -86,7 +86,7 @@ def infer(prompt, ip_adapter_image, ip_adapter_scale=0.5, negative_prompt="", se
|
|
86 |
|
87 |
examples = [
|
88 |
["A dog", "minta.jpeg", 0.3],
|
89 |
-
["A cat", "blue_hair.png", 0.
|
90 |
[" ", "abaporu.jpg", 1.0],
|
91 |
]
|
92 |
|
@@ -95,6 +95,9 @@ css="""
|
|
95 |
margin: 0 auto;
|
96 |
max-width: 720px;
|
97 |
}
|
|
|
|
|
|
|
98 |
"""
|
99 |
with gr.Blocks(css=css) as demo:
|
100 |
with gr.Column(elem_id="col-container"):
|
@@ -123,7 +126,7 @@ with gr.Blocks(css=css) as demo:
|
|
123 |
step=0.05,
|
124 |
value=0.5,
|
125 |
)
|
126 |
-
result = gr.Image(label="Result",
|
127 |
|
128 |
with gr.Accordion("Advanced Settings", open=False):
|
129 |
negative_prompt = gr.Text(
|
|
|
86 |
|
87 |
examples = [
|
88 |
["A dog", "minta.jpeg", 0.3],
|
89 |
+
["A cat", "blue_hair.png", 0.55],
|
90 |
[" ", "abaporu.jpg", 1.0],
|
91 |
]
|
92 |
|
|
|
95 |
margin: 0 auto;
|
96 |
max-width: 720px;
|
97 |
}
|
98 |
+
#result img{
|
99 |
+
object-position: top;
|
100 |
+
}
|
101 |
"""
|
102 |
with gr.Blocks(css=css) as demo:
|
103 |
with gr.Column(elem_id="col-container"):
|
|
|
126 |
step=0.05,
|
127 |
value=0.5,
|
128 |
)
|
129 |
+
result = gr.Image(label="Result", elem_id="result")
|
130 |
|
131 |
with gr.Accordion("Advanced Settings", open=False):
|
132 |
negative_prompt = gr.Text(
|