ehristoforu commited on
Commit
e403150
1 Parent(s): 851538d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -12,6 +12,8 @@ decoder = StableCascadeDecoderPipeline.from_pretrained("stabilityai/stable-casca
12
 
13
  deafult_negative = "poorly Rendered face, poorly drawn face, poor facial details, poorly drawn hands, poorly rendered hands, low resolution, blurry image, oversaturated, bad anatomy, signature, watermark, username, error, missing limbs, error, out of frame, extra fingers, mutated hands, poorly drawn hands, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, username"
14
 
 
 
15
  css = """
16
  footer {
17
  visibility: hidden
@@ -40,7 +42,7 @@ footer {
40
  @spaces.GPU
41
  def gen(prompt, negative, width, height):
42
  prior_output = prior(
43
- prompt=prompt,
44
  height=height,
45
  width=width,
46
  negative_prompt=negative,
@@ -50,7 +52,7 @@ def gen(prompt, negative, width, height):
50
  )
51
  decoder_output = decoder(
52
  image_embeddings=prior_output.image_embeddings.half(),
53
- prompt=prompt,
54
  negative_prompt=negative,
55
  guidance_scale=0.0,
56
  output_type="pil",
 
12
 
13
  deafult_negative = "poorly Rendered face, poorly drawn face, poor facial details, poorly drawn hands, poorly rendered hands, low resolution, blurry image, oversaturated, bad anatomy, signature, watermark, username, error, missing limbs, error, out of frame, extra fingers, mutated hands, poorly drawn hands, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, username"
14
 
15
+ prompt_add = "(dark shot:1.17), epic realistic, faded, ((neutral colors)), art, (hdr:1.5), (muted colors:1.2), hyperdetailed, (artstation:1.5), cinematic, warm lights, dramatic light, (intricate details:1.1), complex background, (rutkowski:0.8), (teal and orange:0.4)"
16
+
17
  css = """
18
  footer {
19
  visibility: hidden
 
42
  @spaces.GPU
43
  def gen(prompt, negative, width, height):
44
  prior_output = prior(
45
+ prompt=f"{prompt}, {prompt_add}",
46
  height=height,
47
  width=width,
48
  negative_prompt=negative,
 
52
  )
53
  decoder_output = decoder(
54
  image_embeddings=prior_output.image_embeddings.half(),
55
+ prompt=f"{prompt}, {prompt_add}",
56
  negative_prompt=negative,
57
  guidance_scale=0.0,
58
  output_type="pil",