Yaron Koresh commited on
Commit
e2914f6
·
verified ·
1 Parent(s): 0c095d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -89,9 +89,9 @@ def infer(prompt,prompt2):
89
  else:
90
  _do = f'{ translate(prompt,"english") }, 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'
91
  if prompt2 == None or prompt2.strip() == "":
92
- _dont = 'ugly, deformed, disfigured, poor details, bad anatomy, including labels, including text, including logo'
93
  else:
94
- _dont = f'including {translate(prompt2,"english")}, ugly, deformed, disfigured, poor details, bad anatomy, including labels, including text, including logo'
95
  image = Piper(_do,_dont).images[0].save(name)
96
  return name
97
 
 
89
  else:
90
  _do = f'{ translate(prompt,"english") }, 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'
91
  if prompt2 == None or prompt2.strip() == "":
92
+ _dont = 'ugly, deformed, disfigured, poor details, bad anatomy, any label, any text, any logo'
93
  else:
94
+ _dont = f'ugly, deformed, disfigured, poor details, bad anatomy, any label, any text, any logo, any {translate(prompt2,"english")}'
95
  image = Piper(_do,_dont).images[0].save(name)
96
  return name
97