ehristoforu commited on
Commit
4374e49
·
1 Parent(s): 3e8991a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -11
app.py CHANGED
@@ -104,22 +104,24 @@ with gr.Blocks(model="sd_xl_base_1.0.safetensors [be9edd61]", sampler="DPM++ 2M
104
  with gr.Row():
105
  with gr.Column(scale=1):
106
  gr.HTML(value=""""<h1><center>Fast SDXL-1.0 on <a href="https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0" target="_blank">stabilityai/stable-diffusion-xl-base-1.0</a>""")
 
107
  with gr.Column(scale=6, min_width=600):
108
  prompt = gr.Textbox(label="Prompt", placeholder="a cute cat, 8k", show_label=True, lines=1)
109
  text_button = gr.Button("Generate", variant='primary', elem_id="generate")
 
110
  with gr.Column(scale=1):
111
  image_output = gr.Image()
112
- with gr.Row():
113
- with gr.Accordion("Additionals inputs", open=False):
114
- with gr.Column(scale=1):
115
- negative_prompt = gr.Textbox(label="Negative Prompt", value="text, blurry", placeholder="What you don't want to see in the image", show_label=True, lines=1)
116
- with gr.Column(scale=1):
117
- steps = gr.Slider(label="Sampling Steps", minimum=1, maximum=30, value=25, step=1)
118
- cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)
119
- seed = gr.Number(label="Seed", value=-1)
120
- with gr.Column(scale=1):
121
- width = gr.Slider(label="↔️ Width", minimum=1024, maximum=1024, value=1024, step=8)
122
- height = gr.Slider(label="↕️ Height", minimum=1024, maximum=1024, value=1024, step=8)
123
 
124
 
125
 
 
104
  with gr.Row():
105
  with gr.Column(scale=1):
106
  gr.HTML(value=""""<h1><center>Fast SDXL-1.0 on <a href="https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0" target="_blank">stabilityai/stable-diffusion-xl-base-1.0</a>""")
107
+ with gr.Row():
108
  with gr.Column(scale=6, min_width=600):
109
  prompt = gr.Textbox(label="Prompt", placeholder="a cute cat, 8k", show_label=True, lines=1)
110
  text_button = gr.Button("Generate", variant='primary', elem_id="generate")
111
+ with gr.Row():
112
  with gr.Column(scale=1):
113
  image_output = gr.Image()
114
+ with gr.Row():
115
+ with gr.Accordion("Additionals inputs", open=False):
116
+ with gr.Column(scale=1):
117
+ negative_prompt = gr.Textbox(label="Negative Prompt", value="text, blurry", placeholder="What you don't want to see in the image", show_label=True, lines=1)
118
+ with gr.Column(scale=1):
119
+ steps = gr.Slider(label="Sampling Steps", minimum=1, maximum=30, value=25, step=1)
120
+ cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)
121
+ seed = gr.Number(label="Seed", value=-1)
122
+ with gr.Column(scale=1):
123
+ width = gr.Slider(label="↔️ Width", minimum=1024, maximum=1024, value=1024, step=8)
124
+ height = gr.Slider(label="↕️ Height", minimum=1024, maximum=1024, value=1024, step=8)
125
 
126
 
127