Yaron Koresh commited on
Commit
23e7c0f
·
verified ·
1 Parent(s): 58e9af4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -92,7 +92,7 @@ def Piper(_do,_dont):
92
  height=512,
93
  width=576,
94
  negative_prompt=_dont,
95
- num_inference_steps=175,
96
  guidance_scale=6
97
  )
98
 
@@ -105,9 +105,9 @@ def infer(prompt,prompt2):
105
  else:
106
  _do = f'photographed { prompt_en }, sharp warm dark vivid vintage colors, rough texture, dynamic poze, proportional, reasonable, realistic, blurred cold light muted pastel 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'{prompt2_en}, {prompt2_en} where in {prompt_en}, labels where in {prompt_en}, texts, logos, ugly, deformed, disfigured, poor details, bad anatomy'
111
  image = Piper(_do,_dont).images[0].save(name)
112
  return name
113
 
 
92
  height=512,
93
  width=576,
94
  negative_prompt=_dont,
95
+ num_inference_steps=200,
96
  guidance_scale=6
97
  )
98
 
 
105
  else:
106
  _do = f'photographed { prompt_en }, sharp warm dark vivid vintage colors, rough texture, dynamic poze, proportional, reasonable, realistic, blurred cold light muted pastel background'
107
  if prompt2 == None or prompt2.strip() == "":
108
+ _dont = 'unreasonable, unreal, ugly, deformed, disfigured, poor details, bad anatomy, logos, texts, labels'
109
  else:
110
+ _dont = f'{prompt2_en}, {prompt2_en} where in {prompt_en}, labels where in {prompt_en}, unreasonable, unreal, texts, logos, ugly, deformed, disfigured, poor details, bad anatomy'
111
  image = Piper(_do,_dont).images[0].save(name)
112
  return name
113