Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
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 = '
|
110 |
else:
|
111 |
-
_do = f'photographed { prompt_en },
|
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 |
|