Yaron Koresh commited on
Commit
6f8c404
·
verified ·
1 Parent(s): ff70fbe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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=7.5
83
  )
84
 
85
  def infer(prompt,prompt2):
@@ -87,13 +87,13 @@ def infer(prompt,prompt2):
87
  prompt_en = translate(prompt,"english")
88
  prompt2_en = translate(prompt2,"english")
89
  if prompt == None or prompt.strip() == "":
90
- _do = 'vivid colors, rough texture, dynamic poze, accurate, matched, realistic details, award winning photograph, soft natural lighting, deep field, high definition, highly detailed, 8k'
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
 
 
79
  width=1280,
80
  negative_prompt=_dont,
81
  num_inference_steps=50,
82
+ guidance_scale=9
83
  )
84
 
85
  def infer(prompt,prompt2):
 
87
  prompt_en = translate(prompt,"english")
88
  prompt2_en = translate(prompt2,"english")
89
  if prompt == None or prompt.strip() == "":
90
+ _do = 'muted colors, rough texture, dynamic poze, accurate, matched, realistic details, award winning photograph, soft natural lighting, deep field, high definition, highly detailed, 8k'
91
  else:
92
+ _do = f'{ prompt_en }, muted 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, {prompt2_en} where in {prompt_en}, logo where in {prompt_en}, text where in {prompt_en}, {prompt2_en}, labels'
97
  image = Piper(_do,_dont).images[0].save(name)
98
  return name
99