Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -184,39 +184,39 @@ with gr.Tab(label="Generate Image"):
|
|
184 |
clear_prompt.click(lambda: (None, None), None, [text_prompt, img_output], queue=False, show_api=False)
|
185 |
with gr.Accordion("Advanced Options", open=True):
|
186 |
with gr.Column(scale=1):
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
gr.Examples(
|
221 |
examples = examples,
|
222 |
inputs = [text_prompt],
|
|
|
184 |
clear_prompt.click(lambda: (None, None), None, [text_prompt, img_output], queue=False, show_api=False)
|
185 |
with gr.Accordion("Advanced Options", open=True):
|
186 |
with gr.Column(scale=1):
|
187 |
+
negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="What should not be in the image", value="( (((hands:-1.25))), physical-defects:2, unhealthy-deformed-joints:2, unhealthy-hands:2, out of frame, (((bad face))), (bad-image-v2-39000:1.3), (((out of frame))), deformed body features, (((poor facial details))), (poorly drawn face:1.3), jpeg artifacts, (missing arms:1.1), (missing legs:1.1), (extra arms:1.2), (extra legs:1.2), [asymmetrical features], warped expressions, distorted eyes ", lines=6, elem_id="negative-prompt-text-input")
|
188 |
+
width = gr.Slider(
|
189 |
+
label="Width",
|
190 |
+
minimum=512,
|
191 |
+
maximum=1280,
|
192 |
+
step=8,
|
193 |
+
value=896,
|
194 |
+
)
|
195 |
+
height = gr.Slider(
|
196 |
+
label="Height",
|
197 |
+
minimum=512,
|
198 |
+
maximum=1280,
|
199 |
+
step=8,
|
200 |
+
value=1152,
|
201 |
+
)
|
202 |
+
method = gr.Dropdown(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ 2S a Karras", "DPM2 a Karras", "DPM2 Karras", "DPM++ SDE Karras", "DEIS", "LMS", "DPM Adaptive", "DPM++ 2M", "DPM2 Ancestral", "DPM++ S", "DPM++ SDE", "DDPM", "DPM Fast", "dpmpp_2s_ancestral", "Euler", "Euler CFG PP", "Euler a", "Euler Ancestral", "Euler+beta", "Heun", "Heun PP2", "DDIM", "LMS Karras", "PLMS", "UniPC", "UniPC BH2"])
|
203 |
+
steps = gr.Slider(
|
204 |
+
label="Sampling steps",
|
205 |
+
minimum=1,
|
206 |
+
maximum=100,
|
207 |
+
step=1,
|
208 |
+
value=24,
|
209 |
+
)
|
210 |
+
cfg = gr.Slider(
|
211 |
+
label="CFG Scale",
|
212 |
+
minimum=3.5,
|
213 |
+
maximum=7,
|
214 |
+
step=0.1,
|
215 |
+
value=3.5,
|
216 |
+
)
|
217 |
+
strength = gr.Slider(label="Strength", value=90, minimum=0, maximum=100, step=10)
|
218 |
+
seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)
|
219 |
+
|
220 |
gr.Examples(
|
221 |
examples = examples,
|
222 |
inputs = [text_prompt],
|