Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -91,9 +91,9 @@ def infer(prompt,prompt2):
|
|
| 91 |
else:
|
| 92 |
_do = f'{ prompt_en }, soft vivid colors, rough texture, dynamic poze, proportional arrangement, reasonable combination, amazing, realistic, award winning photograph, soft lighting, deep field, highly detailed, blurred bright background'
|
| 93 |
if prompt2 == None or prompt2.strip() == "":
|
| 94 |
-
_dont = 'ugly, deformed,
|
| 95 |
else:
|
| 96 |
-
_dont = f'ugly, deformed,
|
| 97 |
image = Piper(_do,_dont).images[0].save(name)
|
| 98 |
return name
|
| 99 |
|
|
|
|
| 91 |
else:
|
| 92 |
_do = f'{ prompt_en }, soft vivid colors, rough texture, dynamic poze, proportional arrangement, reasonable combination, amazing, realistic, award winning photograph, soft lighting, deep field, highly detailed, blurred bright background'
|
| 93 |
if prompt2 == None or prompt2.strip() == "":
|
| 94 |
+
_dont = 'ugly, deformed, disfigured, poor details, bad anatomy, logos, texts, labels'
|
| 95 |
else:
|
| 96 |
+
_dont = f'ugly, deformed, disfigured, poor details, bad anatomy, {prompt2_en} where in {prompt_en}, {prompt2_en}, logos where in {prompt_en}, texts where in {prompt_en}, labels where in {prompt_en}'
|
| 97 |
image = Piper(_do,_dont).images[0].save(name)
|
| 98 |
return name
|
| 99 |
|