lsb commited on
Commit
dfaed80
1 Parent(s): 68b0b4d

minor tweaks

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -8,8 +8,8 @@ from diffusers.utils import make_image_grid
8
 
9
  atkbold = ImageFont.truetype("Atkinson-Hyperlegible-Bold-102.otf",50)
10
 
11
- default_width = 1024
12
- default_height = 768
13
  default_timesteps = 8
14
 
15
  def mask_image_factory(mask_text="ASK FOR\nA SNACK", width=default_width, height=default_height):
@@ -99,11 +99,11 @@ app("corgis running in the park", "ugly, wrong", "ASK FOR\nA SNACK", 1, 1.0, def
99
  iface = gr.Interface(
100
  app,
101
  [
102
- gr.Textbox(label="Prompt", value="corgis running in a flower-filled meadow at golden hour"),
103
  gr.Textbox(label="Negative Prompt", value="ugly, wrong"),
104
  gr.Textbox(label="Mask Text", value="ASK FOR\nA SNACK"),
105
  gr.Number(label="Number of Inference Steps", value=default_timesteps, minimum=1, maximum=50, step=1),
106
- gr.Slider(label="ControlNet Conditioning Scale", value=0.5, minimum=-1.0, maximum=2.0, step=0.01),
107
  gr.Number(label="Width", value=default_width, minimum=256, maximum=2048, precision=0),
108
  gr.Number(label="Height", value=default_height, minimum=256, maximum=2048, precision=0),
109
  gr.Number(label="Random Number Seed", value=42, minimum=0, maximum=2**32-1, precision=0),
 
8
 
9
  atkbold = ImageFont.truetype("Atkinson-Hyperlegible-Bold-102.otf",50)
10
 
11
+ default_width = 1280
12
+ default_height = 720
13
  default_timesteps = 8
14
 
15
  def mask_image_factory(mask_text="ASK FOR\nA SNACK", width=default_width, height=default_height):
 
99
  iface = gr.Interface(
100
  app,
101
  [
102
+ gr.Textbox(label="Prompt", value="lots of puppies frolicking in a flower-filled meadow around tall trees at golden hour"),
103
  gr.Textbox(label="Negative Prompt", value="ugly, wrong"),
104
  gr.Textbox(label="Mask Text", value="ASK FOR\nA SNACK"),
105
  gr.Number(label="Number of Inference Steps", value=default_timesteps, minimum=1, maximum=50, step=1),
106
+ gr.Slider(label="ControlNet Conditioning Scale", value=0.57, minimum=-1.0, maximum=2.0, step=0.01),
107
  gr.Number(label="Width", value=default_width, minimum=256, maximum=2048, precision=0),
108
  gr.Number(label="Height", value=default_height, minimum=256, maximum=2048, precision=0),
109
  gr.Number(label="Random Number Seed", value=42, minimum=0, maximum=2**32-1, precision=0),