Yaron Koresh commited on
Commit
1c7f27b
·
verified ·
1 Parent(s): d947d19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -238,12 +238,12 @@ def handle_generate(*_inp):
238
  #inp[1] = translate(inp[1],"english")
239
  #inp[2] = translate(inp[2],"english")
240
 
241
- if inp[2].length >= 2:
242
  inp[2] = "," + inp[2].strip(",").strip(" ")
243
 
244
  inp[2] = f"textual content,pixelated photo,unrealistic situation,cgi,anime or cartoon quality,drawing quality,cropped photo,photo out of frame,worst quality,low quality,rendering artifacts,duplicated elements,weird style,non-standard humans body,non-standard objects structure,blurry photo,wrong body anatomy,unproportional,cloned face{inp[2]}"
245
 
246
- if inp[1].length >= 2:
247
  inp[1] = "," + inp[1].strip(",").strip(" ")
248
 
249
  inp[1] = f'realistic situations,dark vivid colors,realistic,beautiful pretty look,genuine and authentic reality,logical reasonable photo content,natural look,masterpiece photo,highly detailed photo{inp[1]}'
 
238
  #inp[1] = translate(inp[1],"english")
239
  #inp[2] = translate(inp[2],"english")
240
 
241
+ if len(inp[2]) >= 2:
242
  inp[2] = "," + inp[2].strip(",").strip(" ")
243
 
244
  inp[2] = f"textual content,pixelated photo,unrealistic situation,cgi,anime or cartoon quality,drawing quality,cropped photo,photo out of frame,worst quality,low quality,rendering artifacts,duplicated elements,weird style,non-standard humans body,non-standard objects structure,blurry photo,wrong body anatomy,unproportional,cloned face{inp[2]}"
245
 
246
+ if len(inp[1]) >= 2:
247
  inp[1] = "," + inp[1].strip(",").strip(" ")
248
 
249
  inp[1] = f'realistic situations,dark vivid colors,realistic,beautiful pretty look,genuine and authentic reality,logical reasonable photo content,natural look,masterpiece photo,highly detailed photo{inp[1]}'