Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -89,7 +89,7 @@ def Piper(_do,_dont):
|
|
89 |
height=512,
|
90 |
width=1024,
|
91 |
negative_prompt=_dont,
|
92 |
-
num_inference_steps=
|
93 |
guidance_scale=10
|
94 |
)
|
95 |
|
@@ -98,9 +98,9 @@ def infer(prompt,prompt2):
|
|
98 |
prompt_en = translate(prompt,"english")
|
99 |
prompt2_en = translate(prompt2,"english")
|
100 |
if prompt == None or prompt.strip() == "":
|
101 |
-
_do = 'soft vivid colors, rough texture, dynamic poze,
|
102 |
else:
|
103 |
-
_do = f'{ prompt_en }, soft vivid colors, rough texture, dynamic poze,
|
104 |
if prompt2 == None or prompt2.strip() == "":
|
105 |
_dont = 'ugly, deformed, disfigured, poor details, bad anatomy, logos, texts, labels'
|
106 |
else:
|
|
|
89 |
height=512,
|
90 |
width=1024,
|
91 |
negative_prompt=_dont,
|
92 |
+
num_inference_steps=400,
|
93 |
guidance_scale=10
|
94 |
)
|
95 |
|
|
|
98 |
prompt_en = translate(prompt,"english")
|
99 |
prompt2_en = translate(prompt2,"english")
|
100 |
if prompt == None or prompt.strip() == "":
|
101 |
+
_do = 'soft vivid colors, rough texture, dynamic poze, reasonable, realistic, photograph, soft lighting, deep field, highly detailed, bright background'
|
102 |
else:
|
103 |
+
_do = f'{ prompt_en }, soft vivid colors, rough texture, dynamic poze, reasonable, realistic, photograph, soft lighting, deep field, highly detailed, bright background'
|
104 |
if prompt2 == None or prompt2.strip() == "":
|
105 |
_dont = 'ugly, deformed, disfigured, poor details, bad anatomy, logos, texts, labels'
|
106 |
else:
|