Rooni commited on
Commit
a89d517
·
1 Parent(s): 0176c0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -31,8 +31,8 @@ def generate_image(prompt, negative_prompt, sampling_steps, cfg_scale, seed):
31
  iface = gr.Interface(
32
  fn=generate_image,
33
  inputs=[
34
- gr.Textbox(prompt="Prompt", default=""),
35
- gr.Textbox(prompt="Negative Prompt", default=""),
36
  ],
37
  outputs=gr.Image(type="pil"),
38
  live=True,
@@ -43,9 +43,9 @@ iface = gr.Interface(
43
  tabs=[
44
  "Prompt Input",
45
  [
46
- gr.Slider("Sampling Steps", minimum=1, maximum=30, step=1, default=15),
47
- gr.Slider("CFG Scale", minimum=1, maximum=20, step=1, default=10),
48
- gr.Textbox("Seed", default="-1"),
49
  ]
50
  ],
51
  interpretation="default"
 
31
  iface = gr.Interface(
32
  fn=generate_image,
33
  inputs=[
34
+ gr.Textbox(default="Prompt"),
35
+ gr.Textbox(default="Negative Prompt"),
36
  ],
37
  outputs=gr.Image(type="pil"),
38
  live=True,
 
43
  tabs=[
44
  "Prompt Input",
45
  [
46
+ gr.Slider(minimum=1, maximum=30, step=1, default=15, label="Sampling Steps"),
47
+ gr.Slider(minimum=1, maximum=20, step=1, default=10, label="CFG Scale"),
48
+ gr.Textbox(default="-1", label="Seed"),
49
  ]
50
  ],
51
  interpretation="default"