Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -25,20 +25,20 @@ def generate_video(input_image, prompt, negative_prompt, diffusion_step, height,
|
|
25 |
# Define the Gradio interface
|
26 |
with gr.Blocks() as demo:
|
27 |
with gr.Row():
|
28 |
-
input_image = gr.Image(label="Input Image", type="filepath"
|
29 |
with gr.Column():
|
30 |
prompt = gr.Textbox(label="Prompt", placeholder="Enter prompt here...")
|
31 |
negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="Enter negative prompt here...")
|
32 |
|
33 |
-
diffusion_step = gr.Slider(minimum=1, maximum=100,
|
34 |
-
height = gr.Slider(minimum=128, maximum=1024,
|
35 |
-
width = gr.Slider(minimum=128, maximum=1024,
|
36 |
-
scfg_scale = gr.Slider(minimum=1.0, maximum=20.0,
|
37 |
use_dctinit = gr.Checkbox(value=True, label="Enable DCTInit")
|
38 |
-
dct_coefficients = gr.Slider(minimum=0.0, maximum=1.0,
|
39 |
-
noise_level = gr.Slider(minimum=0, maximum=1000,
|
40 |
-
motion_bucket_id = gr.Slider(minimum=1, maximum=100,
|
41 |
-
seed = gr.Slider(minimum=1, maximum=10000,
|
42 |
|
43 |
generate_btn = gr.Button("Generate Video")
|
44 |
|
|
|
25 |
# Define the Gradio interface
|
26 |
with gr.Blocks() as demo:
|
27 |
with gr.Row():
|
28 |
+
input_image = gr.Image(label="Input Image", type="filepath")
|
29 |
with gr.Column():
|
30 |
prompt = gr.Textbox(label="Prompt", placeholder="Enter prompt here...")
|
31 |
negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="Enter negative prompt here...")
|
32 |
|
33 |
+
diffusion_step = gr.Slider(minimum=1, maximum=100, value=50, label="Diffusion Steps")
|
34 |
+
height = gr.Slider(minimum=128, maximum=1024, value=320, label="Height")
|
35 |
+
width = gr.Slider(minimum=128, maximum=1024, value=512, label="Width")
|
36 |
+
scfg_scale = gr.Slider(minimum=1.0, maximum=20.0, value=7.5, label="CFG Scale")
|
37 |
use_dctinit = gr.Checkbox(value=True, label="Enable DCTInit")
|
38 |
+
dct_coefficients = gr.Slider(minimum=0.0, maximum=1.0, value=0.23, label="DCT Coefficients")
|
39 |
+
noise_level = gr.Slider(minimum=0, maximum=1000, value=985, label="Noise Level")
|
40 |
+
motion_bucket_id = gr.Slider(minimum=1, maximum=100, value=10, label="Motion Intensity")
|
41 |
+
seed = gr.Slider(minimum=1, maximum=10000, value=100, label="Seed")
|
42 |
|
43 |
generate_btn = gr.Button("Generate Video")
|
44 |
|