Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -78,8 +78,8 @@ def Piper(_do,_dont):
|
|
78 |
height=512,
|
79 |
width=1024,
|
80 |
negative_prompt=_dont,
|
81 |
-
num_inference_steps=
|
82 |
-
guidance_scale=
|
83 |
)
|
84 |
|
85 |
def infer(prompt,prompt2):
|
@@ -87,9 +87,9 @@ def infer(prompt,prompt2):
|
|
87 |
prompt_en = translate(prompt,"english")
|
88 |
prompt2_en = translate(prompt2,"english")
|
89 |
if prompt == None or prompt.strip() == "":
|
90 |
-
_do = 'soft dark colors, rough texture, dynamic poze, proportional arrangement, reasonable combination, realistic, award winning photograph, soft lighting, deep field, highly detailed, blurred background'
|
91 |
else:
|
92 |
-
_do = f'{ prompt_en }, soft dark colors, rough texture, dynamic poze, proportional arrangement, reasonable combination, realistic, award winning photograph, soft lighting, deep field, highly detailed, blurred background'
|
93 |
if prompt2 == None or prompt2.strip() == "":
|
94 |
_dont = 'ugly, deformed, inflated, disfigured, poor details, bad anatomy, logos, texts, labels'
|
95 |
else:
|
|
|
78 |
height=512,
|
79 |
width=1024,
|
80 |
negative_prompt=_dont,
|
81 |
+
num_inference_steps=80,
|
82 |
+
guidance_scale=9
|
83 |
)
|
84 |
|
85 |
def infer(prompt,prompt2):
|
|
|
87 |
prompt_en = translate(prompt,"english")
|
88 |
prompt2_en = translate(prompt2,"english")
|
89 |
if prompt == None or prompt.strip() == "":
|
90 |
+
_do = 'soft dark colors, rough texture, dynamic poze, proportional arrangement, reasonable combination, realistic, award winning photograph, soft lighting, deep field, highly detailed, blurred bright background'
|
91 |
else:
|
92 |
+
_do = f'{ prompt_en }, soft dark colors, rough texture, dynamic poze, proportional arrangement, reasonable combination, realistic, award winning photograph, soft lighting, deep field, highly detailed, blurred bright background'
|
93 |
if prompt2 == None or prompt2.strip() == "":
|
94 |
_dont = 'ugly, deformed, inflated, disfigured, poor details, bad anatomy, logos, texts, labels'
|
95 |
else:
|