Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -106,9 +106,9 @@ def infer(prompt,prompt2):
|
|
106 |
else:
|
107 |
_do = f'photographed { prompt_en }, sharp warm dark muted vintage foreground colors, rough texture, dynamic poze, proportional, reasonable, realistic, natural, sharp cold light vivid playful background colors'
|
108 |
if prompt2 == None or prompt2.strip() == "":
|
109 |
-
_dont = '
|
110 |
else:
|
111 |
-
_dont = f'{prompt2_en}, {prompt2_en} where in {prompt_en}, labels where in {prompt_en},
|
112 |
image = Piper(_do,_dont).images[0].save(name)
|
113 |
return name
|
114 |
|
|
|
106 |
else:
|
107 |
_do = f'photographed { prompt_en }, sharp warm dark muted vintage foreground colors, rough texture, dynamic poze, proportional, reasonable, realistic, natural, sharp cold light vivid playful background colors'
|
108 |
if prompt2 == None or prompt2.strip() == "":
|
109 |
+
_dont = 'unreal hands, unreasonable, ugly, deformed palms, bad anatomy, disfigured fingers, poor details, visible logos, visible texts, visible labels'
|
110 |
else:
|
111 |
+
_dont = f'{prompt2_en}, {prompt2_en} where in {prompt_en}, labels where in {prompt_en}, unreal hands, unreasonable, ugly, deformed palms, bad anatomy, disfigured fingers, poor details, logos, texts'
|
112 |
image = Piper(_do,_dont).images[0].save(name)
|
113 |
return name
|
114 |
|