Yaron Koresh commited on
Commit
65d8433
·
verified ·
1 Parent(s): 4cde1ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -199,7 +199,7 @@ def pipe_generate(img,p1,p2,time,title):
199
 
200
  return video_pipe(
201
  prompt=p1,
202
- negative_prompt=p2.replace("textual, ",""),
203
  image=img,
204
  num_inference_steps=video_steps,
205
  guidance_scale=accu,
@@ -216,14 +216,14 @@ def handle_generate(*_inp):
216
  inp[2] = translate(inp[2],"english")
217
 
218
  if inp[2] != "":
219
- inp[2] = ", related to: " + inp[2]
220
 
221
- inp[2] = f"textual, fake, unreal, pixelated, deformed, semi-realistic, cgi, 3d, sketch, cartoon, drawing, anime, cropped, out of frame, low quality, rendering artifacts, ugly, duplicated, weird, mutation, blurry, bad anatomy, unproportional, cloned face, disfigured, gross, malformed, missing body parts, extra body parts, fused body parts{inp[2]}"
222
 
223
  if inp[1] != "":
224
- inp[1] = ", related to: " + inp[1]
225
 
226
- inp[1] = f'photographed, filmed, realistic, pretty, amazing, logical, genuine, authentic, reasonable, natural, masterpiece, highly detailed{inp[1]}'
227
 
228
  print(f"""
229
 
 
199
 
200
  return video_pipe(
201
  prompt=p1,
202
+ negative_prompt=p2.replace("textual content, ",""),
203
  image=img,
204
  num_inference_steps=video_steps,
205
  guidance_scale=accu,
 
216
  inp[2] = translate(inp[2],"english")
217
 
218
  if inp[2] != "":
219
+ inp[2] = ", " + inp[2]
220
 
221
+ inp[2] = f"textual content, pixelated photo, unrealistic situation, cgi quality, sketch quality, cartoon quality, drawing quality, anime quality, cropping, out of frame, worst quality, low quality, rendering artifacts, duplicated elements, weird body look, mutation, blurry photo, bad body anatomy, unproportional body parts, cloned face, disfigured body, malformed photo, missing body parts, extra body parts, fused body parts{inp[2]}"
222
 
223
  if inp[1] != "":
224
+ inp[1] = ", " + inp[1]
225
 
226
+ inp[1] = f'true reality, natural colors, realistic, beautiful pretty look, genuine and authentic reality, logical reasonable photo content, natural look, masterpiece photo, highly detailed photo{inp[1]}'
227
 
228
  print(f"""
229