Yaron Koresh commited on
Commit
69fc9e7
·
verified ·
1 Parent(s): 982c072

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -91,9 +91,9 @@ def infer(prompt,prompt2):
91
  else:
92
  _do = f'{ prompt_en }, soft vivid colors, rough texture, dynamic poze, proportional arrangement, reasonable combination, amazing, realistic, award winning photograph, soft lighting, deep field, highly detailed, blurred bright background'
93
  if prompt2 == None or prompt2.strip() == "":
94
- _dont = 'ugly, deformed, inflated, disfigured, poor details, bad anatomy, logos, texts, labels'
95
  else:
96
- _dont = f'ugly, deformed, inflated, disfigured, poor details, bad anatomy, {prompt2_en} where in {prompt_en}, {prompt2_en}, logos where in {prompt_en}, texts where in {prompt_en}, labels where in {prompt_en}'
97
  image = Piper(_do,_dont).images[0].save(name)
98
  return name
99
 
 
91
  else:
92
  _do = f'{ prompt_en }, soft vivid colors, rough texture, dynamic poze, proportional arrangement, reasonable combination, amazing, realistic, award winning photograph, soft lighting, deep field, highly detailed, blurred bright background'
93
  if prompt2 == None or prompt2.strip() == "":
94
+ _dont = 'ugly, deformed, disfigured, poor details, bad anatomy, logos, texts, labels'
95
  else:
96
+ _dont = f'ugly, deformed, disfigured, poor details, bad anatomy, {prompt2_en} where in {prompt_en}, {prompt2_en}, logos where in {prompt_en}, texts where in {prompt_en}, labels where in {prompt_en}'
97
  image = Piper(_do,_dont).images[0].save(name)
98
  return name
99