jbilcke-hf HF Staff commited on
Commit
cb35e7a
·
1 Parent(s): f226a29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -103,9 +103,13 @@ def resize_image(image, output_size=(1024, 576)):
103
  return cropped_image
104
 
105
  with gr.Blocks() as demo:
106
- gr.Markdown('''# Community demo for Stable Video Diffusion - Img2Vid - XT ([model](https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt), [paper](https://stability.ai/research/stable-video-diffusion-scaling-latent-video-diffusion-models-to-large-datasets), [stability's ui waitlist](https://stability.ai/contact))
107
- #### Research release ([_non-commercial_](https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt/blob/main/LICENSE)): generate `4s` vid from a single image at (`25 frames` at `6 fps`). this demo uses [🧨 diffusers for low VRAM and fast generation](https://huggingface.co/docs/diffusers/main/en/using-diffusers/svd).
108
- ''')
 
 
 
 
109
  secret_token = gr.Text(
110
  label='Secret Token',
111
  max_lines=1,
 
103
  return cropped_image
104
 
105
  with gr.Blocks() as demo:
106
+ gr.HTML("""
107
+ <div style="z-index: 100; position: fixed; top: 0px; right: 0px; left: 0px; bottom: 0px; width: 100%; height: 100%; background: white; display: flex; align-items: center; justify-content: center; color: black;">
108
+ <div style="text-align: center; color: black;">
109
+ <p style="color: black;">This space is a REST API to programmatically generate MP4 videos.</p>
110
+ <p style="color: black;">Interested in using it? Look no further than the <a href="https://huggingface.co/spaces/multimodalart/stable-video-diffusion" target="_blank">original space</a>!</p>
111
+ </div>
112
+ </div>""")
113
  secret_token = gr.Text(
114
  label='Secret Token',
115
  max_lines=1,