mrcuddle commited on
Commit
a9e96a6
·
verified ·
1 Parent(s): 8aa61d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -38,13 +38,13 @@ def generate_video(image_path, seed, fps, duration, use_duration):
38
  # Create the Gradio interface
39
  with gr.Blocks() as demo:
40
  gr.Markdown("# Stable Video Diffusion")
41
- gr.Markdown("Generate a video from an uploaded image using Stable Video Diffusion.")
42
 
43
  with gr.Row():
44
  with gr.Column():
45
  image_input = gr.Image(type="filepath", label="Upload Image")
46
  seed_input = gr.Number(label="Seed", value=666666)
47
- use_duration_toggle = gr.Checkbox(label="Use Duration Instead of FPS")
48
  fps_input = gr.Number(label="FPS", value=25, minimum=1, maximum=60, visible=True)
49
  duration_input = gr.Number(label="Duration (seconds)", value=1, minimum=1, maximum=60, visible=False)
50
  generate_button = gr.Button("Generate Video")
@@ -52,7 +52,8 @@ with gr.Blocks() as demo:
52
  video_output = gr.Video(label="Generated Video")
53
 
54
  with gr.Row():
55
- example_image = gr.Image(value="example.jpeg", label="Example Image")
 
56
  example_video = gr.Video(value="generated.mp4", label="Example Video")
57
 
58
  def toggle_visibility(use_duration):
 
38
  # Create the Gradio interface
39
  with gr.Blocks() as demo:
40
  gr.Markdown("# Stable Video Diffusion")
41
+ gr.Markdown("Generate 25 video frames at 576x1024 ")
42
 
43
  with gr.Row():
44
  with gr.Column():
45
  image_input = gr.Image(type="filepath", label="Upload Image")
46
  seed_input = gr.Number(label="Seed", value=666666)
47
+ use_duration_toggle = gr.Checkbox(label="Use Duration")
48
  fps_input = gr.Number(label="FPS", value=25, minimum=1, maximum=60, visible=True)
49
  duration_input = gr.Number(label="Duration (seconds)", value=1, minimum=1, maximum=60, visible=False)
50
  generate_button = gr.Button("Generate Video")
 
52
  video_output = gr.Video(label="Generated Video")
53
 
54
  with gr.Row():
55
+ example_image = gr.Image("https://huggingface.co/spaces/mrcuddle/SDXT-Image-To-Video/blob/main/image.jpeg", label="Example Image")
56
+
57
  example_video = gr.Video(value="generated.mp4", label="Example Video")
58
 
59
  def toggle_visibility(use_duration):