Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -140,7 +140,7 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
|
|
140 |
with gr.Row():
|
141 |
with gr.Column(elem_id="prompt-container"):
|
142 |
with gr.Row():
|
143 |
-
text_prompt = gr.Textbox(label="Prompt", placeholder="Enter a prompt here", lines=2, show_copy_button = True, elem_id="prompt-text-input")
|
144 |
with gr.Row():
|
145 |
with gr.Accordion("🎨 Lora trigger words", open=False):
|
146 |
gr.Markdown("""
|
@@ -166,12 +166,12 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
|
|
166 |
with gr.Accordion("⚙️ Advanced Settings", open=False, elem_id="settings-container"):
|
167 |
negative_prompt = gr.Textbox(label="Negative Prompt", lines=5, placeholder="What should not be in the image", value=" Bad anatomy, Bad proportions, Deformed, Disconnected limbs, Disfigured, Extra arms, Extra limbs, Extra hands, Fused fingers, Gross proportions, Long neck, Malformed limbs, Mutated, Mutated hands, Mutated limbs, Missing arms, Missing fingers, Poorly drawn hands, Poorly drawn face ugly, tiling, poorly drawn hands, poorly drawn feet, poorly drawn face, out of frame, extra limbs, disfigured, deformed, body out of frame, bad anatomy, watermark, signature, cut off, low contrast, underexposed, overexposed, bad art, beginner, amateur, distorted face, blurry, draft, grainy, text, logo, watermark, banner, extra digits, signature, unprompted-nsfw")
|
168 |
with gr.Row():
|
169 |
-
width = gr.Slider(label="Width", value=896, minimum=64, maximum=1216, step=32)
|
170 |
-
height = gr.Slider(label="Height", value=1152, minimum=64, maximum=1216, step=32)
|
171 |
steps = gr.Slider(label="Sampling steps", value=50, minimum=1, maximum=100, step=1)
|
172 |
cfg = gr.Slider(label="CFG Scale", value=3.5, minimum=1, maximum=20, step=0.5)
|
173 |
method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "DEIS", "LMS", "DPM Adaptive", "DPM++ 2M", "DPM2 Ancestral", "DPM++ S", "DPM++ SDE", "DDPM", "DPM Fast", "Euler", "Euler CFG PP", "Euler a", "Euler Ancestral", "Euler+beta", "Heun", "Heun PP2", "DDIM", "PLMS", "UniPC", "UniPC BH2"])
|
174 |
-
strength = gr.Slider(label="Strength", value=100, minimum=0, maximum=100, step=1)
|
175 |
seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)
|
176 |
with gr.Row():
|
177 |
with gr.Accordion("🫘Seed", open=False):
|
|
|
140 |
with gr.Row():
|
141 |
with gr.Column(elem_id="prompt-container"):
|
142 |
with gr.Row():
|
143 |
+
text_prompt = gr.Textbox(label="Image Prompt", placeholder="Enter a prompt here", lines=2, show_copy_button = True, elem_id="prompt-text-input")
|
144 |
with gr.Row():
|
145 |
with gr.Accordion("🎨 Lora trigger words", open=False):
|
146 |
gr.Markdown("""
|
|
|
166 |
with gr.Accordion("⚙️ Advanced Settings", open=False, elem_id="settings-container"):
|
167 |
negative_prompt = gr.Textbox(label="Negative Prompt", lines=5, placeholder="What should not be in the image", value=" Bad anatomy, Bad proportions, Deformed, Disconnected limbs, Disfigured, Extra arms, Extra limbs, Extra hands, Fused fingers, Gross proportions, Long neck, Malformed limbs, Mutated, Mutated hands, Mutated limbs, Missing arms, Missing fingers, Poorly drawn hands, Poorly drawn face ugly, tiling, poorly drawn hands, poorly drawn feet, poorly drawn face, out of frame, extra limbs, disfigured, deformed, body out of frame, bad anatomy, watermark, signature, cut off, low contrast, underexposed, overexposed, bad art, beginner, amateur, distorted face, blurry, draft, grainy, text, logo, watermark, banner, extra digits, signature, unprompted-nsfw")
|
168 |
with gr.Row():
|
169 |
+
width = gr.Slider(label="Image Width", value=896, minimum=64, maximum=1216, step=32)
|
170 |
+
height = gr.Slider(label="Image Height", value=1152, minimum=64, maximum=1216, step=32)
|
171 |
steps = gr.Slider(label="Sampling steps", value=50, minimum=1, maximum=100, step=1)
|
172 |
cfg = gr.Slider(label="CFG Scale", value=3.5, minimum=1, maximum=20, step=0.5)
|
173 |
method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "DEIS", "LMS", "DPM Adaptive", "DPM++ 2M", "DPM2 Ancestral", "DPM++ S", "DPM++ SDE", "DDPM", "DPM Fast", "Euler", "Euler CFG PP", "Euler a", "Euler Ancestral", "Euler+beta", "Heun", "Heun PP2", "DDIM", "PLMS", "UniPC", "UniPC BH2"])
|
174 |
+
strength = gr.Slider(label="Prompt Strength", value=100, minimum=0, maximum=100, step=1)
|
175 |
seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)
|
176 |
with gr.Row():
|
177 |
with gr.Accordion("🫘Seed", open=False):
|