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 = '
|
105 |
else:
|
106 |
-
_do = f'{ prompt_en },
|
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},
|
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 = 'natural colors, rough texture, dynamic poze, proportional, reasonable, realistic, soft lighting, deep field, highly detailed, blurred bright background'
|
105 |
else:
|
106 |
+
_do = f'amazing { prompt_en } photograph, natural colors, rough texture, dynamic poze, proportional, reasonable, realistic, soft lighting, deep field, highly detailed, blurred bright background'
|
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} where in {prompt_en}, labels where in {prompt_en}, texts, logos'
|
111 |
image = Piper(_do,_dont).images[0].save(name)
|
112 |
return name
|
113 |
|