jbilcke-hf HF staff commited on
Commit
6126b73
·
1 Parent(s): cb35e7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -103,23 +103,23 @@ def resize_image(image, output_size=(1024, 576)):
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,
116
  placeholder='Enter your secret token',
117
  )
 
 
 
 
 
 
 
118
  with gr.Row():
119
  with gr.Column():
120
  image = gr.Image(label="Upload your image", type="pil")
121
  generate_btn = gr.Button("Generate")
122
- base64_out = gr.Textbox(label="Base64 Video")
123
 
124
  with gr.Accordion("Advanced options", open=False):
125
  seed = gr.Slider(label="Seed", value=42, randomize=False, minimum=0, maximum=max_64_bit_int, step=1)
 
103
  return cropped_image
104
 
105
  with gr.Blocks() as demo:
 
 
 
 
 
 
 
106
  secret_token = gr.Text(
107
  label='Secret Token',
108
  max_lines=1,
109
  placeholder='Enter your secret token',
110
  )
111
+ gr.HTML("""
112
+ <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;">
113
+ <div style="text-align: center; color: black;">
114
+ <p style="color: black;">This space is a REST API to programmatically generate MP4 videos.</p>
115
+ <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>
116
+ </div>
117
+ </div>""")
118
  with gr.Row():
119
  with gr.Column():
120
  image = gr.Image(label="Upload your image", type="pil")
121
  generate_btn = gr.Button("Generate")
122
+ base64_out = gr.Textbox(label="Base64 Video")
123
 
124
  with gr.Accordion("Advanced options", open=False):
125
  seed = gr.Slider(label="Seed", value=42, randomize=False, minimum=0, maximum=max_64_bit_int, step=1)