Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -87,10 +87,10 @@ def generate_random_string(length):
|
|
87 |
def Piper(_do,_dont):
|
88 |
return pipe(
|
89 |
_do,
|
90 |
-
height=
|
91 |
-
width=
|
92 |
negative_prompt=_dont,
|
93 |
-
num_inference_steps=
|
94 |
guidance_scale=10
|
95 |
)
|
96 |
|
@@ -103,7 +103,7 @@ def infer(prompt_en,prompt2_en):
|
|
103 |
if prompt2_en == "":
|
104 |
_dont = 'unformed, unproportional, boring, smooth, fictional, blurred, twisted, distorted, divined, human body defects, deformed fingers, ugly fingers, wrong fingers, damaged, signs, prints'
|
105 |
else:
|
106 |
-
_dont = f'{prompt2_en} in
|
107 |
image = Piper(_do,_dont).images[0].save(name)
|
108 |
return name
|
109 |
|
@@ -128,7 +128,7 @@ footer {
|
|
128 |
max-width: 15cm !important;
|
129 |
}
|
130 |
.image-container {
|
131 |
-
aspect-ratio:
|
132 |
}
|
133 |
.dropdown-arrow {
|
134 |
display: none !important;
|
|
|
87 |
def Piper(_do,_dont):
|
88 |
return pipe(
|
89 |
_do,
|
90 |
+
height=720,
|
91 |
+
width=1280,
|
92 |
negative_prompt=_dont,
|
93 |
+
num_inference_steps=200,
|
94 |
guidance_scale=10
|
95 |
)
|
96 |
|
|
|
103 |
if prompt2_en == "":
|
104 |
_dont = 'unformed, unproportional, boring, smooth, fictional, blurred, twisted, distorted, divined, human body defects, deformed fingers, ugly fingers, wrong fingers, damaged, signs, prints'
|
105 |
else:
|
106 |
+
_dont = f'{prompt2_en} anywhere in, unformed, unproportional, boring, smooth, fictional, blurred, twisted, distorted, divined, human body defects, deformed fingers, ugly fingers, wrong fingers, damaged, text anywhere in, prints anywhere in'
|
107 |
image = Piper(_do,_dont).images[0].save(name)
|
108 |
return name
|
109 |
|
|
|
128 |
max-width: 15cm !important;
|
129 |
}
|
130 |
.image-container {
|
131 |
+
aspect-ratio: 1280 / 720 !important;
|
132 |
}
|
133 |
.dropdown-arrow {
|
134 |
display: none !important;
|