Spaces:
Running
on
Zero
Running
on
Zero
Lin Z
commited on
Commit
·
ee6ef96
1
Parent(s):
1b4fe4b
update
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import warnings
|
2 |
warnings.filterwarnings("ignore")
|
3 |
|
@@ -50,6 +51,7 @@ def create_pipeline(device=torch.device("cuda"), dtype=torch.float32):
|
|
50 |
pipeline, category_text_encoding_mapping = create_pipeline(device, dtype)
|
51 |
|
52 |
|
|
|
53 |
def generate_video(image, audio, text, audio_guidance_scale, denoising_step):
|
54 |
|
55 |
category_text_encoding = category_text_encoding_mapping[text].view(1, 77, 768)
|
|
|
1 |
+
import spaces
|
2 |
import warnings
|
3 |
warnings.filterwarnings("ignore")
|
4 |
|
|
|
51 |
pipeline, category_text_encoding_mapping = create_pipeline(device, dtype)
|
52 |
|
53 |
|
54 |
+
@spaces.GPU(duration=120)
|
55 |
def generate_video(image, audio, text, audio_guidance_scale, denoising_step):
|
56 |
|
57 |
category_text_encoding = category_text_encoding_mapping[text].view(1, 77, 768)
|