fffiloni commited on
Commit
2a39288
·
verified ·
1 Parent(s): 5484d62

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +20 -0
gradio_app.py CHANGED
@@ -138,6 +138,17 @@ with gr.Blocks() as demo:
138
 
139
  with gr.Column():
140
  gr.Markdown("# Keyframe Interpolation with Stable Video Diffusion")
 
 
 
 
 
 
 
 
 
 
 
141
  with gr.Row():
142
  with gr.Column():
143
  image_input1 = gr.Image(type="filepath")
@@ -145,6 +156,15 @@ with gr.Blocks() as demo:
145
  submit_btn = gr.Button("Submit")
146
  with gr.Column():
147
  output = gr.Video()
 
 
 
 
 
 
 
 
 
148
 
149
  submit_btn.click(
150
  fn = infer,
 
138
 
139
  with gr.Column():
140
  gr.Markdown("# Keyframe Interpolation with Stable Video Diffusion")
141
+ gr.Markdown("## Generative Inbetweening: Adapting Image-to-Video Models for Keyframe Interpolation")
142
+ gr.HTML("""
143
+ <div style="display:flex;column-gap:4px;">
144
+ <a href='https://svd-keyframe-interpolation.github.io/'>
145
+ <img src='https://img.shields.io/badge/Project-Page-Green'>
146
+ </a>
147
+ <a href='https://arxiv.org/abs/2408.15239'>
148
+ <img src='https://img.shields.io/badge/Paper-Arxiv-red'>
149
+ </a>
150
+ </div>
151
+ """)
152
  with gr.Row():
153
  with gr.Column():
154
  image_input1 = gr.Image(type="filepath")
 
156
  submit_btn = gr.Button("Submit")
157
  with gr.Column():
158
  output = gr.Video()
159
+ gr.Examples(
160
+ examples = [
161
+ [".examples/example_001/frame1.png", "examples/example_001/frame2.png"],
162
+ [".examples/example_002/frame1.png", "examples/example_002/frame2.png"],
163
+ [".examples/example_003/frame1.png", "examples/example_003/frame2.png"],
164
+ [".examples/example_004/frame1.png", "examples/example_004/frame2.png"]
165
+ ],
166
+ inputs = [image_input1, image_input2]
167
+ )
168
 
169
  submit_btn.click(
170
  fn = infer,