Yaron Koresh commited on
Commit
a397f50
·
verified ·
1 Parent(s): 33f3309

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -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 natural colors, rough texture, proportional structure, dynamic poze, realistic details, award winning photograph, soft natural lighting, deep field, high definition, highly detailed, deep pastel background'
91
  else:
92
- _do = f'{ prompt_en }, vivid natural colors, rough texture, proportional structure, dynamic poze, realistic details, award winning photograph, soft natural lighting, deep field, high definition, highly detailed, deep pastel background'
93
  if prompt2 == None or prompt2.strip() == "":
94
- _dont = 'ugly, deformed, inflated, disfigured, poor details, bad anatomy, logos, texts, any labels'
95
  else:
96
- _dont = f'ugly, deformed, inflated, disfigured, poor details, bad anatomy, logos, text, any labels, {prompt2_en}, in the {prompt_en}, out of the {prompt2_en}'
97
  image = Piper(_do,_dont).images[0].save(name)
98
  return name
99
 
 
87
  prompt_en = translate(prompt,"english")
88
  prompt2_en = translate(prompt2,"english")
89
  if prompt == None or prompt.strip() == "":
90
+ _do = 'deep natural colors, rough texture, proportional structure, dynamic poze, realistic details, award winning photograph, soft natural lighting, deep field, high definition, highly detailed, soft pastel background'
91
  else:
92
+ _do = f'{ prompt_en }, deep natural colors, rough texture, proportional structure, dynamic poze, realistic details, award winning photograph, soft natural lighting, deep field, high definition, highly detailed, soft pastel 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, logos, texts, labels, {prompt2_en} where in {prompt_en}, {prompt2_en}'
97
  image = Piper(_do,_dont).images[0].save(name)
98
  return name
99