ciCic commited on
Commit
c144445
1 Parent(s): c1a29f2
Files changed (1) hide show
  1. app.py +3 -16
app.py CHANGED
@@ -33,18 +33,6 @@ def inference(prompt, guidance_scale, num_inference_steps):
33
  return None
34
 
35
 
36
- # example_prompts = [
37
- # "Illustrate the concept of 'serendipity' in a single image.",
38
- # "Create a visual representation of the phrase 'whispers of the autumn wind.'",
39
- # "Design an image capturing the essence of 'timeless wonder' in a mystical forest setting.",
40
- # "Visualize the emotions evoked by the words 'bittersweet symphony' in a unique artwork.",
41
- # "Craft an image that conveys the juxtaposition of 'urban chaos and tranquil solitude' in a futuristic cityscape.",
42
- # "Albert Einstein smoking, half body wide angle professional portrait photo, clear and detailed eyes, "
43
- # "nature background at sunset, backlighting, fashion photography, centered, symmetrical, hasselblad helios 44-2 "
44
- # "58mm F2, by Annie Leibovitz and Ellen von Unwerth"
45
- # ]
46
-
47
-
48
  def app():
49
  return gr.Interface(inference,
50
  [gr.Textbox(
@@ -53,8 +41,8 @@ def app():
53
  lines=3,
54
  value="Self-portrait oil painting, a beautiful cyborg with golden hair, 8k",
55
  ),
56
- gr.Slider(2, 20, value=7.5, label="Guidance Scale"),
57
- gr.Slider(1, 50, value=4, label="Inference steps")
58
  ],
59
 
60
  gr.Image(type="pil",
@@ -63,8 +51,7 @@ def app():
63
  )
64
  , allow_flagging='never', title='Gen Image',
65
  examples=[
66
- ["Self-portrait oil painting, a beautiful cyborg with golden hair, 8k", 7, 10],
67
- ["Self-portrait oil painting, a beautiful cyborg with golden hair, 8k", 15, 20],
68
  ["Design an image capturing the essence of 'timeless wonder' in a mystical forest setting.",
69
  7, 20],
70
  ["Visualize the emotions evoked by the words 'bittersweet symphony' in a unique artwork.",
 
33
  return None
34
 
35
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  def app():
37
  return gr.Interface(inference,
38
  [gr.Textbox(
 
41
  lines=3,
42
  value="Self-portrait oil painting, a beautiful cyborg with golden hair, 8k",
43
  ),
44
+ gr.Slider(2, 20, value=15, step=1, label="Guidance Scale"),
45
+ gr.Slider(1, 50, value=20, step=1, label="Inference steps")
46
  ],
47
 
48
  gr.Image(type="pil",
 
51
  )
52
  , allow_flagging='never', title='Gen Image',
53
  examples=[
54
+ ["A bustling metropolis skyline of towering skyscrapers, illuminated by the neon glow of futuristic advertisements and hover vehicles zipping through the airways, casting dynamic shadows on sleek, reflective surfaces below, 8k", 7, 20],
 
55
  ["Design an image capturing the essence of 'timeless wonder' in a mystical forest setting.",
56
  7, 20],
57
  ["Visualize the emotions evoked by the words 'bittersweet symphony' in a unique artwork.",