Yaron Koresh commited on
Commit
7f26693
·
verified ·
1 Parent(s): 41c9b8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -93,7 +93,7 @@ def Piper(_do,_dont):
93
  height=512,
94
  width=640,
95
  negative_prompt=_dont,
96
- num_inference_steps=400,
97
  guidance_scale=10
98
  )
99
 
@@ -102,9 +102,9 @@ def infer(prompt,prompt2):
102
  prompt_en = translate(prompt,"english")
103
  prompt2_en = translate(prompt2,"english")
104
  if prompt == None or prompt.strip() == "":
105
- _do = 'vintage foreground colors, rough texture, dynamic poze, proportional, reasonable, realistic, natural, light playful background colors'
106
  else:
107
- _do = f'photographed { prompt_en }, vintage foreground colors, rough texture, dynamic poze, proportional, reasonable, realistic, natural, light playful background colors'
108
  if prompt2 == None or prompt2.strip() == "":
109
  _dont = 'distorted items, disfigured fingers, unreal hands, unreasonable scene, ugly presentation, deformed palms, bad anatomy, poor details, visible logos, visible texts, visible labels'
110
  else:
 
93
  height=512,
94
  width=640,
95
  negative_prompt=_dont,
96
+ num_inference_steps=600,
97
  guidance_scale=10
98
  )
99
 
 
102
  prompt_en = translate(prompt,"english")
103
  prompt2_en = translate(prompt2,"english")
104
  if prompt == None or prompt.strip() == "":
105
+ _do = 'natural foreground colors, rough texture, dynamic poze, proportional, reasonable, realistic, natural, light playful background colors'
106
  else:
107
+ _do = f'photographed { prompt_en }, natural foreground colors, rough texture, dynamic poze, proportional, reasonable, realistic, natural, light playful background colors'
108
  if prompt2 == None or prompt2.strip() == "":
109
  _dont = 'distorted items, disfigured fingers, unreal hands, unreasonable scene, ugly presentation, deformed palms, bad anatomy, poor details, visible logos, visible texts, visible labels'
110
  else: