Spaces:
Running
on
Zero
Running
on
Zero
Antoni Bigata
commited on
Commit
·
cb604f6
1
Parent(s):
2dff4e4
requirements
Browse files
app.py
CHANGED
@@ -629,6 +629,13 @@ def process_video(video_input, audio_input, max_num_seconds):
|
|
629 |
duration=10,
|
630 |
)
|
631 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
632 |
if vae_model is None:
|
633 |
vae_model = VaeWrapper("video")
|
634 |
vae_model = vae_model.half() # Convert to half precision
|
|
|
629 |
duration=10,
|
630 |
)
|
631 |
|
632 |
+
global \
|
633 |
+
vae_model, \
|
634 |
+
hubert_model, \
|
635 |
+
wavlm_model, \
|
636 |
+
landmarks_extractor, \
|
637 |
+
keyframe_model, \
|
638 |
+
interpolation_model
|
639 |
if vae_model is None:
|
640 |
vae_model = VaeWrapper("video")
|
641 |
vae_model = vae_model.half() # Convert to half precision
|