Spaces:
Running
on
L40S
Running
on
L40S
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ pipe.fuse_lora()
|
|
26 |
|
27 |
MOD_VALUE = 32
|
28 |
DEFAULT_H_SLIDER_VALUE = 384 # 512
|
29 |
-
DEFAULT_W_SLIDER_VALUE =
|
30 |
|
31 |
SLIDER_MIN_H, SLIDER_MAX_H = 128, 1280
|
32 |
SLIDER_MIN_W, SLIDER_MAX_W = 128, 1280
|
@@ -36,7 +36,7 @@ FIXED_FPS = 24
|
|
36 |
MIN_FRAMES_MODEL = 8
|
37 |
MAX_FRAMES_MODEL = 81
|
38 |
|
39 |
-
default_prompt_t2v = "cinematic footage,
|
40 |
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"
|
41 |
|
42 |
def get_duration(prompt, height, width,
|
@@ -120,8 +120,8 @@ def generate_video(prompt, height, width,
|
|
120 |
return video_path, current_seed
|
121 |
|
122 |
with gr.Blocks() as demo:
|
123 |
-
gr.Markdown("#
|
124 |
-
gr.Markdown("
|
125 |
with gr.Row():
|
126 |
with gr.Column():
|
127 |
prompt_input = gr.Textbox(label="Prompt", value=default_prompt_t2v, placeholder="Describe the video you want to generate...")
|
|
|
26 |
|
27 |
MOD_VALUE = 32
|
28 |
DEFAULT_H_SLIDER_VALUE = 384 # 512
|
29 |
+
DEFAULT_W_SLIDER_VALUE = 640 # 896
|
30 |
|
31 |
SLIDER_MIN_H, SLIDER_MAX_H = 128, 1280
|
32 |
SLIDER_MIN_W, SLIDER_MAX_W = 128, 1280
|
|
|
36 |
MIN_FRAMES_MODEL = 8
|
37 |
MAX_FRAMES_MODEL = 81
|
38 |
|
39 |
+
default_prompt_t2v = "beautiful cinematic footage, a kpop band is dancing on a stage in a nightclub, high quality breakdance, 4K, tiktok video, intricate details, tv broadcast, dynamic camera"
|
40 |
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"
|
41 |
|
42 |
def get_duration(prompt, height, width,
|
|
|
120 |
return video_path, current_seed
|
121 |
|
122 |
with gr.Blocks() as demo:
|
123 |
+
gr.Markdown("# InstaVideo")
|
124 |
+
gr.Markdown("This 🧨 diffusers demo uses the [Wan2.1 1.3B CausVid LoRA by Kijai](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Wan21_CausVid_bidirect2_T2V_1_3B_lora_rank32.safetensors).")
|
125 |
with gr.Row():
|
126 |
with gr.Column():
|
127 |
prompt_input = gr.Textbox(label="Prompt", value=default_prompt_t2v, placeholder="Describe the video you want to generate...")
|