Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -89,9 +89,9 @@ def infer(prompt,prompt2):
|
|
| 89 |
else:
|
| 90 |
_do = f'{ translate(prompt,"english") }, hot colors palette, muted colors, dynamic poze, realistic, accurate, matched, realistic details, award winning photograph, soft natural lighting, deep field, high definition, highly detailed, 8k'
|
| 91 |
if prompt2 == None or prompt2.strip() == "":
|
| 92 |
-
_dont = 'ugly, deformed, disfigured, poor details, bad anatomy,
|
| 93 |
else:
|
| 94 |
-
_dont = f'ugly, deformed, disfigured, poor details, bad anatomy,
|
| 95 |
image = Piper(_do,_dont).images[0].save(name)
|
| 96 |
return name
|
| 97 |
|
|
|
|
| 89 |
else:
|
| 90 |
_do = f'{ translate(prompt,"english") }, hot colors palette, muted colors, dynamic poze, realistic, accurate, matched, realistic details, award winning photograph, soft natural lighting, deep field, high definition, highly detailed, 8k'
|
| 91 |
if prompt2 == None or prompt2.strip() == "":
|
| 92 |
+
_dont = 'ugly, deformed, disfigured, poor details, bad anatomy, visible label, visible text, visible logo'
|
| 93 |
else:
|
| 94 |
+
_dont = f'ugly, deformed, disfigured, poor details, bad anatomy, visible label, visible text, visible logo, visible {translate(prompt2,"english")}'
|
| 95 |
image = Piper(_do,_dont).images[0].save(name)
|
| 96 |
return name
|
| 97 |
|