Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ MAX_SEED = np.iinfo(np.int32).max
|
|
38 |
|
39 |
FIXED_FPS = 24
|
40 |
MIN_FRAMES_MODEL = 8
|
41 |
-
MAX_FRAMES_MODEL =
|
42 |
|
43 |
default_prompt_i2v = "make this image come alive, cinematic motion, smooth animation"
|
44 |
default_negative_prompt = "Bright tones, overexposed, static, blurred details, subtitles, style, works, paintings, images, static, overall gray, worst quality, low quality, JPEG compression residue, ugly, incomplete, extra fingers, poorly drawn hands, poorly drawn faces, deformed, disfigured, misshapen limbs, fused fingers, still picture, messy background, three legs, many people in the background, walking backwards, watermark, text, signature"
|
@@ -93,7 +93,7 @@ def get_duration(input_image, prompt, height, width,
|
|
93 |
|
94 |
@spaces.GPU(duration=get_duration)
|
95 |
def generate_video(input_image, prompt, height, width,
|
96 |
-
negative_prompt=default_negative_prompt, duration_seconds =
|
97 |
guidance_scale = 1, steps = 4,
|
98 |
seed = 42, randomize_seed = False,
|
99 |
progress=gr.Progress(track_tqdm=True)):
|
|
|
38 |
|
39 |
FIXED_FPS = 24
|
40 |
MIN_FRAMES_MODEL = 8
|
41 |
+
MAX_FRAMES_MODEL = 240
|
42 |
|
43 |
default_prompt_i2v = "make this image come alive, cinematic motion, smooth animation"
|
44 |
default_negative_prompt = "Bright tones, overexposed, static, blurred details, subtitles, style, works, paintings, images, static, overall gray, worst quality, low quality, JPEG compression residue, ugly, incomplete, extra fingers, poorly drawn hands, poorly drawn faces, deformed, disfigured, misshapen limbs, fused fingers, still picture, messy background, three legs, many people in the background, walking backwards, watermark, text, signature"
|
|
|
93 |
|
94 |
@spaces.GPU(duration=get_duration)
|
95 |
def generate_video(input_image, prompt, height, width,
|
96 |
+
negative_prompt=default_negative_prompt, duration_seconds = 4,
|
97 |
guidance_scale = 1, steps = 4,
|
98 |
seed = 42, randomize_seed = False,
|
99 |
progress=gr.Progress(track_tqdm=True)):
|