DigiP-AI commited on
Commit
4e89de6
·
verified ·
1 Parent(s): 37878f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -11
app.py CHANGED
@@ -159,18 +159,15 @@ with gr.Blocks(theme=theme, css=css) as app:
159
  # Container for all the UI elements
160
  with gr.Column(elem_id="app-container"):
161
  # Add a text input for the main prompt
162
- with gr.Row():
163
- with gr.Column(elem_id="prompt-container"):
164
- with gr.Row():
165
- text_prompt = gr.Textbox(label="Image Prompt", placeholder="Enter a prompt here", lines=2, show_copy_button = True, elem_id="prompt-text-input")
166
 
167
- # Accordion for advanced settings
168
- with gr.Row():
169
- with gr.Accordion("Advanced Settings", open=False):
170
- negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="What should not be in the image", value="((visible hand:1.3), (ugly:1.3), (duplicate:1.2), (morbid:1.1), (mutilated:1.1), out of frame, bad face, extra fingers, mutated hands, (poorly drawn hands:1.1), (poorly drawn face:1.3), (mutation:1.3), (deformed:1.3), blurry, (bad anatomy:1.1), (bad proportions:1.2), (extra limbs:1.1), cloned face, (disfigured:1.2), gross proportions, malformed limbs, (missing arms:1.1), (missing legs:1.1), (extra arms:1.2), (extra legs:1.2), fused fingers, too many fingers, (long neck:1.2), sketched by bad-artist, (bad-image-v2-39000:1.3)", lines=5, elem_id="negative-prompt-text-input")
171
- with gr.Row():
172
- width = gr.Slider(label="ImageWidth", value=896, minimum=64, maximum=1216, step=32)
173
- height = gr.Slider(label="Image Height", value=1152, minimum=64, maximum=1216, step=32)
174
  steps = gr.Slider(label="Sampling steps", value=50, minimum=1, maximum=100, step=1)
175
  cfg = gr.Slider(label="CFG Scale", value=3.5, minimum=1, maximum=20, step=1)
176
  strength = gr.Slider(label="PromptStrength", value=100, minimum=0, maximum=100, step=1)
 
159
  # Container for all the UI elements
160
  with gr.Column(elem_id="app-container"):
161
  # Add a text input for the main prompt
162
+ text_prompt = gr.Textbox(label="Image Prompt", placeholder="Enter a prompt here", lines=2, show_copy_button = True, elem_id="prompt-text-input")
 
 
 
163
 
164
+ # Accordion for advanced settings
165
+ with gr.Row():
166
+ with gr.Accordion("Advanced Settings", open=False):
167
+ negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="What should not be in the image", value="((visible hand:1.3), (ugly:1.3), (duplicate:1.2), (morbid:1.1), (mutilated:1.1), out of frame, bad face, extra fingers, mutated hands, (poorly drawn hands:1.1), (poorly drawn face:1.3), (mutation:1.3), (deformed:1.3), blurry, (bad anatomy:1.1), (bad proportions:1.2), (extra limbs:1.1), cloned face, (disfigured:1.2), gross proportions, malformed limbs, (missing arms:1.1), (missing legs:1.1), (extra arms:1.2), (extra legs:1.2), fused fingers, too many fingers, (long neck:1.2), sketched by bad-artist, (bad-image-v2-39000:1.3)", lines=5, elem_id="negative-prompt-text-input")
168
+ with gr.Row():
169
+ width = gr.Slider(label="ImageWidth", 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=1)
173
  strength = gr.Slider(label="PromptStrength", value=100, minimum=0, maximum=100, step=1)