NihalGazi commited on
Commit
9afc9d5
1 Parent(s): f73f7d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
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", tool="editor")
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, default=50, label="Diffusion Steps")
34
- height = gr.Slider(minimum=128, maximum=1024, default=320, label="Height")
35
- width = gr.Slider(minimum=128, maximum=1024, default=512, label="Width")
36
- scfg_scale = gr.Slider(minimum=1.0, maximum=20.0, default=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, default=0.23, label="DCT Coefficients")
39
- noise_level = gr.Slider(minimum=0, maximum=1000, default=985, label="Noise Level")
40
- motion_bucket_id = gr.Slider(minimum=1, maximum=100, default=10, label="Motion Intensity")
41
- seed = gr.Slider(minimum=1, maximum=10000, default=100, label="Seed")
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