PatrickSchrML commited on
Commit
fd5301f
1 Parent(s): 451354b

disabled steps

Browse files
Files changed (1) hide show
  1. app.py +27 -12
app.py CHANGED
@@ -44,7 +44,6 @@ def infer(prompt, n_samples, steps, scale, seed):
44
  response = requests.get(url.format(prompt, int(n_samples), int(steps), f'{scale:.1f}', int(seed)))
45
  #response = requests.get(url.format('a%20naked%20girl', 2, 50, 7.5, 2))
46
  data = json.load(BytesIO(response.content))
47
- print(data)
48
  for image in data['output']['choices']:
49
  im = Image.open(BytesIO(base64.b64decode(image['image_base64'])))
50
  images.append(im)
@@ -180,29 +179,45 @@ block = gr.Blocks(css=css)
180
  examples = [
181
  [
182
  'a gorgeous female photo, professionally retouched, soft lighting, torso, legs, feet, realistic, smooth face, perfect eyes, !! wide angle!!',
183
- #2,
184
- #7.5,
 
 
185
  ],
186
  [
187
  'portrait of girl with smokey eyes makeup in abandoned hotel, grange clothes, redshift, wide high angle coloured polaroid photograph with flash, kodak film, hyper real, stunning moody cinematography, with anamorphic lenses, by maripol, fallen angels by wong kar - wai, style of suspiria and neon demon and children from bahnhof zoo, detailed ',
188
- #2,
189
- #7.5,
 
 
190
  ],
191
  [
192
  'padme amidala taking a bath artwork, safe for work, no nudity',
193
- #2,
194
- #7.5,
 
 
195
  ],
196
  [
197
- 'portrait of Sickly diseased dying Samurai warrior, sun shining, photo realistic illustration by greg rutkowski, thomas kindkade, alphonse mucha, loish, norman rockwell.'
 
 
 
 
198
  ],
199
  [
200
  'a photograph by vanessa beecroft',
201
- #2,
202
- #7.5,
 
 
203
  ],
204
  [
205
- 'a disturbing horror photograph of a beautiful crying woman with flowers and fungus growing out of her head m, intricate, hyperrealism, sharp focus, cinematography, highly detailed, octane render, digital horror artwork, matte, photography by professional photographe'
 
 
 
 
206
  ],
207
  ]
208
 
@@ -265,7 +280,7 @@ with block:
265
  with gr.Row(elem_id="advanced-options"):
266
  gr.Markdown("Advanced settings are temporarily unavailable")
267
  samples = gr.Slider(label="Images", minimum=1, maximum=2, value=2, step=1)
268
- steps = gr.Slider(label="Steps", minimum=1, maximum=50, value=50, step=1)
269
  scale = gr.Slider(
270
  label="Guidance Scale", minimum=7.5, maximum=50, value=7.5, step=0.5
271
  )
 
44
  response = requests.get(url.format(prompt, int(n_samples), int(steps), f'{scale:.1f}', int(seed)))
45
  #response = requests.get(url.format('a%20naked%20girl', 2, 50, 7.5, 2))
46
  data = json.load(BytesIO(response.content))
 
47
  for image in data['output']['choices']:
48
  im = Image.open(BytesIO(base64.b64decode(image['image_base64'])))
49
  images.append(im)
 
179
  examples = [
180
  [
181
  'a gorgeous female photo, professionally retouched, soft lighting, torso, legs, feet, realistic, smooth face, perfect eyes, !! wide angle!!',
182
+ 2,
183
+ 50,
184
+ 7.5,
185
+ 1,
186
  ],
187
  [
188
  'portrait of girl with smokey eyes makeup in abandoned hotel, grange clothes, redshift, wide high angle coloured polaroid photograph with flash, kodak film, hyper real, stunning moody cinematography, with anamorphic lenses, by maripol, fallen angels by wong kar - wai, style of suspiria and neon demon and children from bahnhof zoo, detailed ',
189
+ 2,
190
+ 50,
191
+ 7.5,
192
+ 1,
193
  ],
194
  [
195
  'padme amidala taking a bath artwork, safe for work, no nudity',
196
+ 2,
197
+ 50,
198
+ 7.5,
199
+ 1,
200
  ],
201
  [
202
+ 'portrait of Sickly diseased dying Samurai warrior, sun shining, photo realistic illustration by greg rutkowski, thomas kindkade, alphonse mucha, loish, norman rockwell.',
203
+ 2,
204
+ 50,
205
+ 7.5,
206
+ 1,
207
  ],
208
  [
209
  'a photograph by vanessa beecroft',
210
+ 2,
211
+ 50,
212
+ 7.5,
213
+ 1,
214
  ],
215
  [
216
+ 'a disturbing horror photograph of a beautiful crying woman with flowers and fungus growing out of her head m, intricate, hyperrealism, sharp focus, cinematography, highly detailed, octane render, digital horror artwork, matte, photography by professional photographe',
217
+ 2,
218
+ 50,
219
+ 7.5,
220
+ 1,
221
  ],
222
  ]
223
 
 
280
  with gr.Row(elem_id="advanced-options"):
281
  gr.Markdown("Advanced settings are temporarily unavailable")
282
  samples = gr.Slider(label="Images", minimum=1, maximum=2, value=2, step=1)
283
+ steps = gr.Slider(label="Steps", minimum=50, maximum=50, value=50, step=1)
284
  scale = gr.Slider(
285
  label="Guidance Scale", minimum=7.5, maximum=50, value=7.5, step=0.5
286
  )