Yaron Koresh commited on
Commit
22f3f26
·
verified ·
1 Parent(s): 01c4521

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -79,7 +79,7 @@ def Piper(_do,_dont):
79
  width=1280,
80
  negative_prompt=_dont,
81
  num_inference_steps=50,
82
- guidance_scale=6
83
  )
84
 
85
  def infer(prompt,prompt2):
@@ -91,9 +91,9 @@ def infer(prompt,prompt2):
91
  else:
92
  _do = f'{ prompt_en }, vivid colors, rough texture, dynamic poze, 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, label/text/logo/{prompt2_en} from {prompt_en}, {prompt2_en}, label, text, logo'
97
  image = Piper(_do,_dont).images[0].save(name)
98
  return name
99
 
 
79
  width=1280,
80
  negative_prompt=_dont,
81
  num_inference_steps=50,
82
+ guidance_scale=7.5
83
  )
84
 
85
  def infer(prompt,prompt2):
 
91
  else:
92
  _do = f'{ prompt_en }, vivid colors, rough texture, dynamic poze, 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, labels, texts, logos'
95
  else:
96
+ _dont = f'ugly, deformed, wierd, disfigured, poor details, bad anatomy, labels or texts or logos or {prompt2_en} - where in {prompt_en}, {prompt2_en}, labels, texts, logos'
97
  image = Piper(_do,_dont).images[0].save(name)
98
  return name
99