Yaron Koresh commited on
Commit
a6305de
·
verified ·
1 Parent(s): 75cd28c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -106,13 +106,13 @@ def infer(prompt,prompt2):
106
  prompt_en = translate(prompt,"english")
107
  prompt2_en = translate(prompt2,"english")
108
  if prompt == None or prompt.strip() == "":
109
- _do = 'sharp warm dark muted vintage foreground colors, rough texture, dynamic poze, proportional, reasonable, realistic, natural, blurred cold light vivid playful background colors'
110
  else:
111
- _do = f'photographed { prompt_en }, sharp warm dark muted vintage foreground colors, rough texture, dynamic poze, proportional, reasonable, realistic, natural, blurred cold light vivid playful background colors'
112
  if prompt2 == None or prompt2.strip() == "":
113
- _dont = 'unreasonable, unreal, ugly, deformed, disfigured, poor details, bad anatomy, logos, texts, labels'
114
  else:
115
- _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'
116
  image = Piper(_do,_dont).images[0].save(name)
117
  return name
118
 
 
106
  prompt_en = translate(prompt,"english")
107
  prompt2_en = translate(prompt2,"english")
108
  if prompt == None or prompt.strip() == "":
109
+ _do = 'warm dark muted vintage foreground colors, rough texture, dynamic poze, proportional, reasonable, realistic, natural, cold light vivid playful background colors'
110
  else:
111
+ _do = f'photographed { prompt_en }, warm dark muted vintage foreground colors, rough texture, dynamic poze, proportional, reasonable, realistic, natural, cold light vivid playful background colors'
112
  if prompt2 == None or prompt2.strip() == "":
113
+ _dont = 'blurred, unreasonable, unreal, ugly, deformed, disfigured, poor details, bad anatomy, logos, texts, labels'
114
  else:
115
+ _dont = f'{prompt2_en}, {prompt2_en} where in {prompt_en}, labels where in {prompt_en}, blurred, unreasonable, unreal, texts, logos, ugly, deformed, disfigured, poor details, bad anatomy'
116
  image = Piper(_do,_dont).images[0].save(name)
117
  return name
118