DigiP-AI commited on
Commit
9e19cab
·
verified ·
1 Parent(s): a701145

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -198,9 +198,9 @@ footer {
198
  """
199
 
200
  with gr.Blocks(css=css, theme=theme, fill_width= False) as app:
201
- with gr.Tab("Basic Settings", fill_width= False):
202
  with gr.Row():
203
- prompt = gr.Textbox(placeholder="Enter the image description...", show_label=True, label='Image Prompt ✍️', lines=3, show_copy_button = True)
204
  with gr.Row():
205
  task = gr.Radio(interactive=True, value="Stable Diffusion XL 1.0", show_label=True, label="Model of neural network 🤖 ", choices=['Stable Diffusion XL 1.0', 'Crystal Clear XL',
206
  'Juggernaut XL', 'DreamShaper XL',
@@ -212,7 +212,7 @@ with gr.Blocks(css=css, theme=theme, fill_width= False) as app:
212
 
213
  with gr.Tab("Extended settings"):
214
  with gr.Row():
215
- negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=True, label='Negative Prompt:', lines=3, value="[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry")
216
 
217
  with gr.Row():
218
  sampler = gr.Dropdown(value="DPM++ S", show_label=True, label="Sampling Method:", choices=[
@@ -228,9 +228,9 @@ with gr.Blocks(css=css, theme=theme, fill_width= False) as app:
228
  with gr.Row():
229
  height = gr.Slider(label="Height", minimum=512, maximum=2048, step=8, value=1152,interactive=True,)
230
 
231
- with gr.Column():
232
  text_button = gr.Button("Generate image", variant="primary", interactive=True, elem_id="generate")
233
- with gr.Column():
234
  image_output = gr.Image(show_download_button=True, interactive=False, label='Generated Image 🌄', show_share_button=False, show_fullscreen_button=True, format="png", elem_id="gallery")
235
 
236
  text_button.click(query, inputs=[prompt, negative_prompt, task, steps, sampler, cfg_scale, seed, width, height], outputs=image_output, concurrency_limit=48)
 
198
  """
199
 
200
  with gr.Blocks(css=css, theme=theme, fill_width= False) as app:
201
+ with gr.Tab("Basic Settings"):
202
  with gr.Row():
203
+ prompt = gr.Textbox(placeholder="Enter the image description...", show_label=True, label='Image Prompt ✍️', lines=3, scale=6, show_copy_button = True)
204
  with gr.Row():
205
  task = gr.Radio(interactive=True, value="Stable Diffusion XL 1.0", show_label=True, label="Model of neural network 🤖 ", choices=['Stable Diffusion XL 1.0', 'Crystal Clear XL',
206
  'Juggernaut XL', 'DreamShaper XL',
 
212
 
213
  with gr.Tab("Extended settings"):
214
  with gr.Row():
215
+ negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=True, label='Negative Prompt:', scale=6, lines=3, value="[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry")
216
 
217
  with gr.Row():
218
  sampler = gr.Dropdown(value="DPM++ S", show_label=True, label="Sampling Method:", choices=[
 
228
  with gr.Row():
229
  height = gr.Slider(label="Height", minimum=512, maximum=2048, step=8, value=1152,interactive=True,)
230
 
231
+ with gr.Column(scale=4):
232
  text_button = gr.Button("Generate image", variant="primary", interactive=True, elem_id="generate")
233
+ with gr.Column(scale=4):
234
  image_output = gr.Image(show_download_button=True, interactive=False, label='Generated Image 🌄', show_share_button=False, show_fullscreen_button=True, format="png", elem_id="gallery")
235
 
236
  text_button.click(query, inputs=[prompt, negative_prompt, task, steps, sampler, cfg_scale, seed, width, height], outputs=image_output, concurrency_limit=48)