DemiPoto commited on
Commit
279502f
·
verified ·
1 Parent(s): e4da5b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -253,21 +253,21 @@ def make_me():
253
  with gr.Row():
254
  with gr.Column(scale=4):
255
  with gr.Group():
256
- txt_input = gr.Textbox(label='Your prompt:', lines=3)
257
  with gr.Accordion("Advanced", open=False, visible=True):
258
- neg_input = gr.Textbox(label='Negative prompt:', lines=1)
259
  with gr.Row():
260
- width = gr.Slider(label="Width", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
261
- height = gr.Slider(label="Height", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
262
  with gr.Row():
263
  choice_ratio = gr.Dropdown(label="Ratio Width/Height",
264
  info="OverWrite Width and Height (W*H<1024*1024)",
265
  show_label=True, choices=list(list_ratios) , interactive = True, value=list_ratios[0][1])
266
  choice_ratio.change(ratio_chosen,[choice_ratio,width,height],[width,height])
267
  with gr.Row():
268
- steps = gr.Slider(label="Number of inference steps", info="If 0, the default value is used.", maximum=100, step=1, value=0)
269
- cfg = gr.Slider(label="Guidance scale", info="If 0, the default value is used.", maximum=30.0, step=0.1, value=0)
270
- seed = gr.Slider(label="Seed", info="Randomize Seed if -1.", minimum=-1, maximum=MAX_SEED, step=1, value=-1)
271
  gen_button = gr.Button('Generate images', scale=3)
272
  stop_button = gr.Button('Stop', variant='secondary', interactive=False, scale=1)
273
  gen_button.click(lambda: gr.update(interactive=True), None, stop_button)
 
253
  with gr.Row():
254
  with gr.Column(scale=4):
255
  with gr.Group():
256
+ txt_input = gr.Textbox(label='Your prompt:', lines=3, interactive = True)
257
  with gr.Accordion("Advanced", open=False, visible=True):
258
+ neg_input = gr.Textbox(label='Negative prompt:', lines=1, interactive = True)
259
  with gr.Row():
260
+ width = gr.Slider(label="Width", info="If 0, the default value is used.", maximum=1216, step=32, value=0, interactive = True)
261
+ height = gr.Slider(label="Height", info="If 0, the default value is used.", maximum=1216, step=32, value=0, interactive = True)
262
  with gr.Row():
263
  choice_ratio = gr.Dropdown(label="Ratio Width/Height",
264
  info="OverWrite Width and Height (W*H<1024*1024)",
265
  show_label=True, choices=list(list_ratios) , interactive = True, value=list_ratios[0][1])
266
  choice_ratio.change(ratio_chosen,[choice_ratio,width,height],[width,height])
267
  with gr.Row():
268
+ steps = gr.Slider(label="Number of inference steps", info="If 0, the default value is used.", maximum=100, step=1, value=0, interactive = True)
269
+ cfg = gr.Slider(label="Guidance scale", info="If 0, the default value is used.", maximum=30.0, step=0.1, value=0, interactive = True)
270
+ seed = gr.Slider(label="Seed", info="Randomize Seed if -1.", minimum=-1, maximum=MAX_SEED, step=1, value=-1, interactive = True)
271
  gen_button = gr.Button('Generate images', scale=3)
272
  stop_button = gr.Button('Stop', variant='secondary', interactive=False, scale=1)
273
  gen_button.click(lambda: gr.update(interactive=True), None, stop_button)