linoyts HF Staff commited on
Commit
c6f49f2
·
verified ·
1 Parent(s): de395a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -9
app.py CHANGED
@@ -217,7 +217,6 @@ def generate_video(
217
  reference_video,
218
  control_video, # New parameter for pre-processed video
219
  prompt,
220
- control_type,
221
  duration=3.0,
222
  negative_prompt="worst quality, inconsistent motion, blurry, jittery, distorted",
223
  height=768,
@@ -226,6 +225,7 @@ def generate_video(
226
  guidance_scale=1.0,
227
  seed=0,
228
  randomize_seed=False,
 
229
  progress=gr.Progress()
230
  ):
231
  try:
@@ -450,14 +450,14 @@ with gr.Blocks() as demo:
450
 
451
  gr.Examples(
452
  examples=[
453
- ["video_assets/vid_1.mp4", None, "A sleek cybernetic wolf sprinting through a neon-lit futuristic cityscape, its metallic form gleaming with electric blue circuits. The wolf's powerful stride carries it down rain-slicked streets between towering skyscrapers, while holographic advertisements cast colorful reflections on its chrome surface. Sparks of digital energy trail behind the creature as it moves with fluid mechanical precision through the urban maze, creating streaks of light in the misty night air.", "canny", 3, "worst quality, inconsistent motion, blurry, jittery, distorted", 768, 1152, 7, 1, 0, True],
454
- ["video_assets/vid_2.mp4", None, "A translucent ghost floating in a moonlit cemetery, raising a glowing spectral lantern that casts eerie light through the darkness. The ethereal figure's wispy form shimmers as it lifts the phantom light above its head, illuminating weathered tombstones and gnarled trees. Pale mist swirls around the ghost as the lantern pulses with otherworldly energy, creating haunting shadows that dance across the graveyard in the dead of night.", "canny", 2.5, "worst quality, inconsistent motion, blurry, jittery, distorted", 768, 1152, 7, 1, 0, True],
455
- ["video_assets/vid_3.mp4", None,"A sleek android assassin poised in a combat stance atop a futuristic skyscraper, arms positioned for perfect balance. The chrome-plated figure gleams under neon city lights as holographic data streams flow around its metallic form. Rain droplets bead on its polished surface while the sprawling cyberpunk metropolis stretches endlessly below. Electric circuits pulse beneath the android's transparent panels as it maintains its precise, calculated pose against the backdrop of flying vehicles and towering digital billboards.", "canny", 3, "worst quality, inconsistent motion, blurry, jittery, distorted", 768, 1152, 7, 1, 0, True],
456
- ["video_assets/vid_4.mp4", None, "Luminescent video game characters with glowing outlines and neon-bright details wandering through a digital landscape. Their bodies emit soft, colorful light that pulses gently as they move, creating trails of radiance behind them. The characters have a futuristic, stylized appearance with smooth surfaces that reflect their inner glow. They navigate naturally through their environment, their movements fluid and purposeful, while their bioluminescent features cast dynamic shadows and illuminate the surrounding area. The scene has a cyberpunk aesthetic with the characters' radiant presence serving as the primary light source in an otherwise darkened digital world.", "canny", 2.5, "worst quality, inconsistent motion, blurry, jittery, distorted", 768, 1152, 7, 1, 0, True],
457
  ],
458
  inputs=[reference_video,
 
459
  prompt,
460
- control_type,
461
  duration,
462
  negative_prompt,
463
  height,
@@ -465,7 +465,8 @@ with gr.Blocks() as demo:
465
  num_inference_steps,
466
  guidance_scale,
467
  seed,
468
- randomize_seed],
 
469
  outputs=[output_video, seed],
470
  fn=generate_video, cache_examples="lazy"
471
  )
@@ -486,7 +487,6 @@ with gr.Blocks() as demo:
486
  reference_video,
487
  control_video, # Use pre-processed video
488
  prompt,
489
- control_type,
490
  duration,
491
  negative_prompt,
492
  height,
@@ -494,7 +494,8 @@ with gr.Blocks() as demo:
494
  num_inference_steps,
495
  guidance_scale,
496
  seed,
497
- randomize_seed
 
498
  ],
499
  outputs=[output_video, seed],
500
  show_progress=True
 
217
  reference_video,
218
  control_video, # New parameter for pre-processed video
219
  prompt,
 
220
  duration=3.0,
221
  negative_prompt="worst quality, inconsistent motion, blurry, jittery, distorted",
222
  height=768,
 
225
  guidance_scale=1.0,
226
  seed=0,
227
  randomize_seed=False,
228
+ control_type="canny",
229
  progress=gr.Progress()
230
  ):
231
  try:
 
450
 
451
  gr.Examples(
452
  examples=[
453
+ ["video_assets/vid_1.mp4", None, "A sleek cybernetic wolf sprinting through a neon-lit futuristic cityscape, its metallic form gleaming with electric blue circuits. The wolf's powerful stride carries it down rain-slicked streets between towering skyscrapers, while holographic advertisements cast colorful reflections on its chrome surface. Sparks of digital energy trail behind the creature as it moves with fluid mechanical precision through the urban maze, creating streaks of light in the misty night air.", 3, "worst quality, inconsistent motion, blurry, jittery, distorted", 768, 1152, 7, 1, 0, True, "canny"],
454
+ ["video_assets/vid_2.mp4", None, "A translucent ghost floating in a moonlit cemetery, raising a glowing spectral lantern that casts eerie light through the darkness. The ethereal figure's wispy form shimmers as it lifts the phantom light above its head, illuminating weathered tombstones and gnarled trees. Pale mist swirls around the ghost as the lantern pulses with otherworldly energy, creating haunting shadows that dance across the graveyard in the dead of night.", 2.5, "worst quality, inconsistent motion, blurry, jittery, distorted", 768, 1152, 7, 1, 0, True, "canny"],
455
+ ["video_assets/vid_3.mp4", None,"A sleek android assassin poised in a combat stance atop a futuristic skyscraper, arms positioned for perfect balance. The chrome-plated figure gleams under neon city lights as holographic data streams flow around its metallic form. Rain droplets bead on its polished surface while the sprawling cyberpunk metropolis stretches endlessly below. Electric circuits pulse beneath the android's transparent panels as it maintains its precise, calculated pose against the backdrop of flying vehicles and towering digital billboards.", 3, "worst quality, inconsistent motion, blurry, jittery, distorted", 768, 1152, 7, 1, 0, True, "canny"],
456
+ ["video_assets/vid_4.mp4", None, "Luminescent video game characters with glowing outlines and neon-bright details wandering through a digital landscape. Their bodies emit soft, colorful light that pulses gently as they move, creating trails of radiance behind them. The characters have a futuristic, stylized appearance with smooth surfaces that reflect their inner glow. They navigate naturally through their environment, their movements fluid and purposeful, while their bioluminescent features cast dynamic shadows and illuminate the surrounding area. The scene has a cyberpunk aesthetic with the characters' radiant presence serving as the primary light source in an otherwise darkened digital world.", 2.5, "worst quality, inconsistent motion, blurry, jittery, distorted", 768, 1152, 7, 1, 0, True, "canny"],
457
  ],
458
  inputs=[reference_video,
459
+ control_video,
460
  prompt,
 
461
  duration,
462
  negative_prompt,
463
  height,
 
465
  num_inference_steps,
466
  guidance_scale,
467
  seed,
468
+ randomize_seed,
469
+ control_type],
470
  outputs=[output_video, seed],
471
  fn=generate_video, cache_examples="lazy"
472
  )
 
487
  reference_video,
488
  control_video, # Use pre-processed video
489
  prompt,
 
490
  duration,
491
  negative_prompt,
492
  height,
 
494
  num_inference_steps,
495
  guidance_scale,
496
  seed,
497
+ randomize_seed,
498
+ control_type,
499
  ],
500
  outputs=[output_video, seed],
501
  show_progress=True