Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -79,7 +79,7 @@ def Piper(_do,_dont):
|
|
79 |
width=1280,
|
80 |
negative_prompt=_dont,
|
81 |
num_inference_steps=50,
|
82 |
-
guidance_scale=
|
83 |
)
|
84 |
|
85 |
def infer(prompt,prompt2):
|
@@ -91,9 +91,9 @@ def infer(prompt,prompt2):
|
|
91 |
else:
|
92 |
_do = f'{ prompt_en }, vivid colors, rough texture, dynamic poze, accurate, matched, realistic details, award winning photograph, soft natural lighting, deep field, high definition, highly detailed, 8k'
|
93 |
if prompt2 == None or prompt2.strip() == "":
|
94 |
-
_dont = 'ugly, deformed, wierd, disfigured, poor details, bad anatomy,
|
95 |
else:
|
96 |
-
_dont = f'ugly, deformed, wierd, disfigured, poor details, bad anatomy,
|
97 |
image = Piper(_do,_dont).images[0].save(name)
|
98 |
return name
|
99 |
|
|
|
79 |
width=1280,
|
80 |
negative_prompt=_dont,
|
81 |
num_inference_steps=50,
|
82 |
+
guidance_scale=7.5
|
83 |
)
|
84 |
|
85 |
def infer(prompt,prompt2):
|
|
|
91 |
else:
|
92 |
_do = f'{ prompt_en }, vivid colors, rough texture, dynamic poze, accurate, matched, realistic details, award winning photograph, soft natural lighting, deep field, high definition, highly detailed, 8k'
|
93 |
if prompt2 == None or prompt2.strip() == "":
|
94 |
+
_dont = 'ugly, deformed, wierd, disfigured, poor details, bad anatomy, labels, texts, logos'
|
95 |
else:
|
96 |
+
_dont = f'ugly, deformed, wierd, disfigured, poor details, bad anatomy, labels or texts or logos or {prompt2_en} - where in {prompt_en}, {prompt2_en}, labels, texts, logos'
|
97 |
image = Piper(_do,_dont).images[0].save(name)
|
98 |
return name
|
99 |
|