Yaron Koresh commited on
Commit
4a033c0
·
verified ·
1 Parent(s): b6978b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -15
app.py CHANGED
@@ -60,8 +60,8 @@ fast=True
60
  fps=30
61
  width=896
62
  height=896
63
- step=200
64
- accu=5.0
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
- arr = []
223
- for wrd in inp[2].split():
224
- arr.append(wrd)
225
- inp[2] = ", " + ", ".join(arr)
226
 
227
- inp[2] = f"faked, errored, dreamy, unreal, off topic, pixelated, deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, weird, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, unspecified, general, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck{inp[2]}"
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
- for wrd in inp[1].split():
233
- _do.append(wrd)
234
- inp[1] = ", ".join(_do)
235
 
236
  if inp[5] != "":
237
- _do.append(f'centered readable large bold written text: "{inp[5]}"')
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