Yaron Koresh commited on
Commit
bd326ed
·
verified ·
1 Parent(s): ad57bcb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -101,13 +101,13 @@ def infer(prompt,prompt2):
101
  prompt_en = translate(prompt,"english")
102
  prompt2_en = translate(prompt2,"english")
103
  if prompt == None or prompt.strip() == "":
104
- _do = 'soft vivid colors, rough texture, dynamic poze, proportional arrangement, reasonable combination, amazing, realistic, award winning photograph, soft lighting, deep field, highly detailed, bright background, 8k'
105
  else:
106
- _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, bright background, 8k'
107
  if prompt2 == None or prompt2.strip() == "":
108
  _dont = 'ugly, deformed, disfigured, poor details, bad anatomy, logos, texts, labels'
109
  else:
110
- _dont = f'ugly, deformed, disfigured, poor details, bad anatomy, {prompt2_en}, {prompt2_en} in {prompt_en}, logos in {prompt_en}, texts in {prompt_en}, labels'
111
  image = Piper(_do,_dont).images[0].save(name)
112
  return name
113
 
 
101
  prompt_en = translate(prompt,"english")
102
  prompt2_en = translate(prompt2,"english")
103
  if prompt == None or prompt.strip() == "":
104
+ _do = 'natural colors, rough texture, dynamic poze, proportional, reasonable, realistic, soft lighting, deep field, highly detailed, blurred bright background'
105
  else:
106
+ _do = f'amazing { prompt_en } photograph, natural colors, rough texture, dynamic poze, proportional, reasonable, realistic, soft lighting, deep field, highly detailed, blurred bright background'
107
  if prompt2 == None or prompt2.strip() == "":
108
  _dont = 'ugly, deformed, disfigured, poor details, bad anatomy, logos, texts, labels'
109
  else:
110
+ _dont = f'ugly, deformed, disfigured, poor details, bad anatomy, {prompt2_en}, {prompt2_en} where in {prompt_en}, labels where in {prompt_en}, texts, logos'
111
  image = Piper(_do,_dont).images[0].save(name)
112
  return name
113