Yaron Koresh commited on
Commit
271bf98
·
verified ·
1 Parent(s): c6e1b97

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -78,8 +78,8 @@ def Piper(_do,_dont):
78
  height=512,
79
  width=1024,
80
  negative_prompt=_dont,
81
- num_inference_steps=100,
82
- guidance_scale=10
83
  )
84
 
85
  def infer(prompt,prompt2):
@@ -87,9 +87,9 @@ 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 = 'soft dark colors, rough texture, dynamic poze, proportional arrangement, reasonable combination, realistic, award winning photograph, soft lighting, deep field, highly detailed, blurred background'
91
  else:
92
- _do = f'{ prompt_en }, soft dark colors, rough texture, dynamic poze, proportional arrangement, reasonable combination, realistic, award winning photograph, soft lighting, deep field, highly detailed, blurred background'
93
  if prompt2 == None or prompt2.strip() == "":
94
  _dont = 'ugly, deformed, inflated, disfigured, poor details, bad anatomy, logos, texts, labels'
95
  else:
 
78
  height=512,
79
  width=1024,
80
  negative_prompt=_dont,
81
+ num_inference_steps=80,
82
+ guidance_scale=9
83
  )
84
 
85
  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 = 'soft dark colors, rough texture, dynamic poze, proportional arrangement, reasonable combination, realistic, award winning photograph, soft lighting, deep field, highly detailed, blurred bright background'
91
  else:
92
+ _do = f'{ prompt_en }, soft dark colors, rough texture, dynamic poze, proportional arrangement, reasonable combination, 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: