Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -60,8 +60,8 @@ fast=True
|
|
60 |
fps=30
|
61 |
width=896
|
62 |
height=896
|
63 |
-
step=
|
64 |
-
accu=
|
65 |
|
66 |
# ui data
|
67 |
|
@@ -219,24 +219,17 @@ def handle_generate(*_inp):
|
|
219 |
inp[2] = translate(inp[2],"english")
|
220 |
|
221 |
if inp[2] != "":
|
222 |
-
|
223 |
-
for wrd in inp[2].split():
|
224 |
-
arr.append(wrd)
|
225 |
-
inp[2] = ", " + ", ".join(arr)
|
226 |
|
227 |
-
inp[2] = f"faked
|
228 |
-
|
229 |
-
_do = ['photographed', 'realistic', 'true', 'genuine', 'dynamic poze', 'authentic', 'deep field', 'reasonable', "natural", 'best quality', 'focused', "highly detailed"]
|
230 |
|
231 |
if inp[1] != "":
|
232 |
-
|
233 |
-
|
234 |
-
inp[1] =
|
235 |
|
236 |
if inp[5] != "":
|
237 |
-
|
238 |
-
|
239 |
-
inp[1] = ", ".join(_do)
|
240 |
|
241 |
print(f"""
|
242 |
|
|
|
60 |
fps=30
|
61 |
width=896
|
62 |
height=896
|
63 |
+
step=100
|
64 |
+
accu=9.0
|
65 |
|
66 |
# ui data
|
67 |
|
|
|
219 |
inp[2] = translate(inp[2],"english")
|
220 |
|
221 |
if inp[2] != "":
|
222 |
+
inp[2] = " and " + inp[2]
|
|
|
|
|
|
|
223 |
|
224 |
+
inp[2] = f"a faked and errored and dreamy and unreal and off topic and pixelated and deformed iris and deformed pupils and semi-realistic and cgi and 3d and render and sketch and cartoon and drawing and anime and cropped and out of frame and worst quality and low quality and jpeg artifacts and ugly and duplicate and weird and morbid and mutilated and extra fingers and mutated hands and poorly drawn hands and poorly drawn face and mutation and deformed and blurry and dehydrated and bad anatomy and bad proportions and extra limbs and cloned face and disfigured and unspecified and gross and proportions and malformed limbs and missing arms and missing legs and extra arms and extra legs and fused fingers and too many fingers and long neck{inp[2]}"
|
|
|
|
|
225 |
|
226 |
if inp[1] != "":
|
227 |
+
inp[1] = " and " + inp[1]
|
228 |
+
|
229 |
+
inp[1] = f'a photographed and realistic and true and genuine and dynamic poze and authentic and deep field and reasonable and natural and best quality and focused and highly detailed{inp[1]}'
|
230 |
|
231 |
if inp[5] != "":
|
232 |
+
inp[1] += f' and add a centered readable large bold title which says: {inp[5]}')
|
|
|
|
|
233 |
|
234 |
print(f"""
|
235 |
|