PatrickSchrML commited on
Commit
eed8479
1 Parent(s): 2fafc0a

config for examples

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -41,7 +41,7 @@ def infer(prompt, n_samples, steps, scale, seed):
41
  # images.append(image)
42
  # else:
43
  url = os.getenv('BACKEND_URL')
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']:
@@ -188,29 +188,29 @@ examples = [
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',
@@ -282,11 +282,11 @@ with block:
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
  )
287
  seed = gr.Slider(
288
  label="Seed",
289
- minimum=1,
290
  maximum=2147483647,
291
  step=1,
292
  randomize=True,
 
41
  # images.append(image)
42
  # else:
43
  url = os.getenv('BACKEND_URL')
44
+ response = requests.get(url.format(prompt, int(n_samples), max(50,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']:
 
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
+ 9,
192
+ 364629028,
193
  ],
194
  [
195
  'padme amidala taking a bath artwork, safe for work, no nudity',
196
  2,
197
  50,
198
  7.5,
199
+ 0,
 
 
 
 
 
 
 
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
+ 445713656,
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',
 
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=20, value=7.5, step=0.5
286
  )
287
  seed = gr.Slider(
288
  label="Seed",
289
+ minimum=0,
290
  maximum=2147483647,
291
  step=1,
292
  randomize=True,