Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -101,13 +101,13 @@ def infer(prompt,prompt2):
|
|
101 |
prompt_en = translate(prompt,"english")
|
102 |
prompt2_en = translate(prompt2,"english")
|
103 |
if prompt == None or prompt.strip() == "":
|
104 |
-
_do = 'rough texture, dynamic poze, reasonable, realistic, photograph, soft lighting, highly detailed'
|
105 |
else:
|
106 |
-
_do = f'{ prompt_en }, rough texture, dynamic poze, reasonable, realistic, photograph, soft lighting, highly detailed'
|
107 |
if prompt2 == None or prompt2.strip() == "":
|
108 |
_dont = 'ugly, deformed, disfigured, poor details, bad anatomy, logos, texts, labels'
|
109 |
else:
|
110 |
-
_dont = f'ugly, deformed, disfigured, poor details, bad anatomy, {prompt2_en} in {prompt_en}, logos in {prompt_en}, texts in {prompt_en}, labels
|
111 |
image = Piper(_do,_dont).images[0].save(name)
|
112 |
return name
|
113 |
|
|
|
101 |
prompt_en = translate(prompt,"english")
|
102 |
prompt2_en = translate(prompt2,"english")
|
103 |
if prompt == None or prompt.strip() == "":
|
104 |
+
_do = 'soft vivid colors, rough texture, dynamic poze, proportional arrangement, reasonable combination, amazing, realistic, award winning photograph, soft lighting, deep field, highly detailed, bright background, 8k'
|
105 |
else:
|
106 |
+
_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, bright background, 8k'
|
107 |
if prompt2 == None or prompt2.strip() == "":
|
108 |
_dont = 'ugly, deformed, disfigured, poor details, bad anatomy, logos, texts, labels'
|
109 |
else:
|
110 |
+
_dont = f'ugly, deformed, disfigured, poor details, bad anatomy, {prompt2_en}, {prompt2_en} in {prompt_en}, logos in {prompt_en}, texts in {prompt_en}, labels'
|
111 |
image = Piper(_do,_dont).images[0].save(name)
|
112 |
return name
|
113 |
|