Yaron Koresh commited on
Commit
b77bd5b
verified
1 Parent(s): cf21689

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -75,16 +75,16 @@ def generate_random_string(length):
75
  def Piper(_do):
76
  return pipe(
77
  _do,
78
- height=768,
79
- width=512,
80
- negative_prompt='ugly, deformed, disfigured, poor details, bad anatomy, labels, texts, logos',
81
- num_inference_steps=50,
82
- guidance_scale=8.5
83
  )
84
 
85
  def infer(prompt):
86
  name = generate_random_string(12)+".png"
87
- _do = f'{ translate(prompt,"english") }, cold color palette, muted colors, detailed, 8k'.lower()
88
  image = Piper(_do).images[0].save(name)
89
  return name
90
 
@@ -94,7 +94,7 @@ css="""
94
  max-width: 15cm;
95
  }
96
  #image-container {
97
- aspect-ratio: 1 / 1;
98
  }
99
  .dropdown-arrow {
100
  display: none !important;
 
75
  def Piper(_do):
76
  return pipe(
77
  _do,
78
+ height=512,
79
+ width=768,
80
+ #negative_prompt='ugly, deformed, disfigured, poor details, bad anatomy, labels, texts, logos',
81
+ num_inference_steps=40,
82
+ guidance_scale=3.5
83
  )
84
 
85
  def infer(prompt):
86
  name = generate_random_string(12)+".png"
87
+ _do = f'Amazing playful { translate(prompt,"english") }, muted colors, dynamic poze, realistic转 realistic details, dark white and dark gray, reflections, award winning photo, soft natural lighting, 3d, Blender, Octane render, tilt - shift, deep field, colorful, highly detailed illustrations, 8k'.lower()
88
  image = Piper(_do).images[0].save(name)
89
  return name
90
 
 
94
  max-width: 15cm;
95
  }
96
  #image-container {
97
+ aspect-ratio: 3 / 2;
98
  }
99
  .dropdown-arrow {
100
  display: none !important;