Yaron Koresh commited on
Commit
1325cc8
·
verified ·
1 Parent(s): a56659c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -78,8 +78,8 @@ def Piper(_do,_dont):
78
  height=512,
79
  width=768,
80
  negative_prompt=_dont,
81
- num_inference_steps=150,
82
- guidance_scale=10
83
  )
84
 
85
  def infer(prompt,prompt2):
@@ -91,9 +91,9 @@ def infer(prompt,prompt2):
91
  else:
92
  _do = f'{ prompt_en }, hot colors palette, muted colors, dynamic poze, realistic, accurate, matched, realistic details, award winning photograph, soft natural lighting, deep field, high definition, highly detailed, 8k'
93
  if prompt2 == None or prompt2.strip() == "":
94
- _dont = 'ugly, deformed, disfigured, poor details, bad anatomy, label, text, logo'
95
  else:
96
- _dont = f'ugly, deformed, disfigured, poor details, bad anatomy, label, text, logo, {prompt_en} where including {prompt2_en}, {prompt2_en}'
97
  image = Piper(_do,_dont).images[0].save(name)
98
  return name
99
 
 
78
  height=512,
79
  width=768,
80
  negative_prompt=_dont,
81
+ num_inference_steps=40,
82
+ guidance_scale=3.5
83
  )
84
 
85
  def infer(prompt,prompt2):
 
91
  else:
92
  _do = f'{ prompt_en }, hot colors palette, muted colors, dynamic poze, realistic, accurate, matched, realistic details, award winning photograph, soft natural lighting, deep field, high definition, highly detailed, 8k'
93
  if prompt2 == None or prompt2.strip() == "":
94
+ _dont = 'ugly, deformed, wierd, disfigured, poor details, bad anatomy, label, text, logo'
95
  else:
96
+ _dont = f'ugly, deformed, wierd, disfigured, poor details, bad anatomy, {prompt_en} where including {prompt2_en} or label or text or logo, {prompt2_en}, label, text, logo'
97
  image = Piper(_do,_dont).images[0].save(name)
98
  return name
99