Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
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]
|
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]
|
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]}'
|