xianbao HF staff commited on
Commit
27033f3
1 Parent(s): effaa05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -176,9 +176,9 @@ with gr.Blocks() as demo:
176
  with gr.Column():
177
  gr.Markdown("**Optional Parameters** (default values are recommended)<br>"
178
  "Turn Inference Steps larger if you want more detailed video, but it will be slower.<br>"
179
- "50 steps are recommended for most cases. will cause 120 seconds for inference.<br>")
180
  with gr.Row():
181
- num_inference_steps = gr.Number(label="Inference Steps", value=50)
182
  guidance_scale = gr.Number(label="Guidance Scale", value=6.0)
183
  generate_button = gr.Button("🎬 Generate Video")
184
 
@@ -199,25 +199,25 @@ with gr.Blocks() as demo:
199
  <tr>
200
  <td>A detailed wooden toy ship with intricately carved masts and sails is seen gliding smoothly over a plush, blue carpet that mimics the waves of the sea. The ship's hull is painted a rich brown, with tiny windows. The carpet, soft and textured, provides a perfect backdrop, resembling an oceanic expanse. Surrounding the ship are various other toys and children's items, hinting at a playful environment. The scene captures the innocence and imagination of childhood, with the toy ship's journey symbolizing endless adventures in a whimsical, indoor setting.</td>
201
  <td><a href="https://github.com/THUDM/CogVideo/raw/main/resources/videos/1.mp4">Video 1</a></td>
202
- <td>50</td>
203
  <td>6</td>
204
  </tr>
205
  <tr>
206
  <td>The camera follows behind a white vintage SUV with a black roof rack as it speeds up a steep dirt road surrounded by pine trees on a steep mountain slope, dust kicks up from it’s tires, the sunlight shines on the SUV as it speeds along the dirt road, casting a warm glow over the scene. The dirt road curves gently into the distance, with no other cars or vehicles in sight. The trees on either side of the road are redwoods, with patches of greenery scattered throughout. The car is seen from the rear following the curve with ease, making it seem as if it is on a rugged drive through the rugged terrain. The dirt road itself is surrounded by steep hills and mountains, with a clear blue sky above with wispy clouds.</td>
207
  <td><a href="https://github.com/THUDM/CogVideo/raw/main/resources/videos/2.mp4">Video 2</a></td>
208
- <td>50</td>
209
  <td>6</td>
210
  </tr>
211
  <tr>
212
  <td>A street artist, clad in a worn-out denim jacket and a colorful bandana, stands before a vast concrete wall in the heart, holding a can of spray paint, spray-painting a colorful bird on a mottled wall.</td>
213
  <td><a href="https://github.com/THUDM/CogVideo/raw/main/resources/videos/3.mp4">Video 3</a></td>
214
- <td>50</td>
215
  <td>6</td>
216
  </tr>
217
  <tr>
218
  <td>In the haunting backdrop of a war-torn city, where ruins and crumbled walls tell a story of devastation, a poignant close-up frames a young girl. Her face is smudged with ash, a silent testament to the chaos around her. Her eyes glistening with a mix of sorrow and resilience, capturing the raw emotion of a world that has lost its innocence to the ravages of conflict.</td>
219
  <td><a href="https://github.com/THUDM/CogVideo/raw/main/resources/videos/4.mp4">Video 4</a></td>
220
- <td>50</td>
221
  <td>6</td>
222
  </tr>
223
  </table>
 
176
  with gr.Column():
177
  gr.Markdown("**Optional Parameters** (default values are recommended)<br>"
178
  "Turn Inference Steps larger if you want more detailed video, but it will be slower.<br>"
179
+ "40 steps are recommended for most cases. will cause 120 seconds for inference.<br>")
180
  with gr.Row():
181
+ num_inference_steps = gr.Number(label="Inference Steps", value=40)
182
  guidance_scale = gr.Number(label="Guidance Scale", value=6.0)
183
  generate_button = gr.Button("🎬 Generate Video")
184
 
 
199
  <tr>
200
  <td>A detailed wooden toy ship with intricately carved masts and sails is seen gliding smoothly over a plush, blue carpet that mimics the waves of the sea. The ship's hull is painted a rich brown, with tiny windows. The carpet, soft and textured, provides a perfect backdrop, resembling an oceanic expanse. Surrounding the ship are various other toys and children's items, hinting at a playful environment. The scene captures the innocence and imagination of childhood, with the toy ship's journey symbolizing endless adventures in a whimsical, indoor setting.</td>
201
  <td><a href="https://github.com/THUDM/CogVideo/raw/main/resources/videos/1.mp4">Video 1</a></td>
202
+ <td>40</td>
203
  <td>6</td>
204
  </tr>
205
  <tr>
206
  <td>The camera follows behind a white vintage SUV with a black roof rack as it speeds up a steep dirt road surrounded by pine trees on a steep mountain slope, dust kicks up from it’s tires, the sunlight shines on the SUV as it speeds along the dirt road, casting a warm glow over the scene. The dirt road curves gently into the distance, with no other cars or vehicles in sight. The trees on either side of the road are redwoods, with patches of greenery scattered throughout. The car is seen from the rear following the curve with ease, making it seem as if it is on a rugged drive through the rugged terrain. The dirt road itself is surrounded by steep hills and mountains, with a clear blue sky above with wispy clouds.</td>
207
  <td><a href="https://github.com/THUDM/CogVideo/raw/main/resources/videos/2.mp4">Video 2</a></td>
208
+ <td>40</td>
209
  <td>6</td>
210
  </tr>
211
  <tr>
212
  <td>A street artist, clad in a worn-out denim jacket and a colorful bandana, stands before a vast concrete wall in the heart, holding a can of spray paint, spray-painting a colorful bird on a mottled wall.</td>
213
  <td><a href="https://github.com/THUDM/CogVideo/raw/main/resources/videos/3.mp4">Video 3</a></td>
214
+ <td>40</td>
215
  <td>6</td>
216
  </tr>
217
  <tr>
218
  <td>In the haunting backdrop of a war-torn city, where ruins and crumbled walls tell a story of devastation, a poignant close-up frames a young girl. Her face is smudged with ash, a silent testament to the chaos around her. Her eyes glistening with a mix of sorrow and resilience, capturing the raw emotion of a world that has lost its innocence to the ravages of conflict.</td>
219
  <td><a href="https://github.com/THUDM/CogVideo/raw/main/resources/videos/4.mp4">Video 4</a></td>
220
+ <td>40</td>
221
  <td>6</td>
222
  </tr>
223
  </table>