Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
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] = ",
|
220 |
|
221 |
-
inp[2] = f"textual
|
222 |
|
223 |
if inp[1] != "":
|
224 |
-
inp[1] = ",
|
225 |
|
226 |
-
inp[1] = f'
|
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 |
|