asahi417 commited on
Commit
fd59666
·
verified ·
1 Parent(s): 656dc9e

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -14,7 +14,7 @@ for example in examples:
14
  load_image(f"{root_url}/{example}").save(example)
15
  tmp_output_dir = "outputs"
16
  os.makedirs(tmp_output_dir, exist_ok=True)
17
- title = ("# [Stable Video Diffusion](ttps://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt)\n"
18
  "The demo is part of [panna](https://github.com/abacws-abacus/panna) project.")
19
 
20
 
@@ -44,7 +44,9 @@ with gr.Blocks() as demo:
44
  run_button = gr.Button("Generate")
45
  video = gr.Video()
46
  with gr.Accordion("Advanced options", open=False):
47
- upscaler_prompt = gr.Text(label="Prompt for upscaler", show_label=False, max_lines=1, placeholder="Enter your prompt", container=False)
 
 
48
  seed = gr.Slider(label="Seed", minimum=0, maximum=1_000_000, step=1, value=0)
49
  num_frames = gr.Slider(label="Number of frames", minimum=1, maximum=100, step=1, value=25)
50
  motion_bucket_id = gr.Slider(label="Motion bucket id", minimum=1, maximum=255, step=1, value=127)
 
14
  load_image(f"{root_url}/{example}").save(example)
15
  tmp_output_dir = "outputs"
16
  os.makedirs(tmp_output_dir, exist_ok=True)
17
+ title = ("# [Stable Video Diffusion](ttps://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt) with [InstructIR as Upscaler](https://huggingface.co/spaces/marcosv/InstructIR)\n"
18
  "The demo is part of [panna](https://github.com/abacws-abacus/panna) project.")
19
 
20
 
 
44
  run_button = gr.Button("Generate")
45
  video = gr.Video()
46
  with gr.Accordion("Advanced options", open=False):
47
+ upscaler_prompt = gr.Text(
48
+ label="Prompt for upscaler", show_label=False, max_lines=1, placeholder="Enter your prompt", container=False
49
+ )
50
  seed = gr.Slider(label="Seed", minimum=0, maximum=1_000_000, step=1, value=0)
51
  num_frames = gr.Slider(label="Number of frames", minimum=1, maximum=100, step=1, value=25)
52
  motion_bucket_id = gr.Slider(label="Motion bucket id", minimum=1, maximum=255, step=1, value=127)