Spaces:
Runtime error
Runtime error
Rex Cheng
commited on
Commit
β’
77e7170
1
Parent(s):
967924e
spaces GPU
Browse files
app.py
CHANGED
@@ -56,6 +56,7 @@ def get_model() -> tuple[MMAudio, FeaturesUtils, SequenceConfig]:
|
|
56 |
net, feature_utils, seq_cfg = get_model()
|
57 |
|
58 |
|
|
|
59 |
@torch.inference_mode()
|
60 |
def video_to_audio(video: gr.Video, prompt: str, negative_prompt: str, seed: int, num_steps: int,
|
61 |
cfg_strength: float, duration: float):
|
@@ -91,6 +92,7 @@ def video_to_audio(video: gr.Video, prompt: str, negative_prompt: str, seed: int
|
|
91 |
return video_save_path
|
92 |
|
93 |
|
|
|
94 |
@torch.inference_mode()
|
95 |
def text_to_audio(prompt: str, negative_prompt: str, seed: int, num_steps: int, cfg_strength: float,
|
96 |
duration: float):
|
|
|
56 |
net, feature_utils, seq_cfg = get_model()
|
57 |
|
58 |
|
59 |
+
@spaces.GPU
|
60 |
@torch.inference_mode()
|
61 |
def video_to_audio(video: gr.Video, prompt: str, negative_prompt: str, seed: int, num_steps: int,
|
62 |
cfg_strength: float, duration: float):
|
|
|
92 |
return video_save_path
|
93 |
|
94 |
|
95 |
+
@spaces.GPU
|
96 |
@torch.inference_mode()
|
97 |
def text_to_audio(prompt: str, negative_prompt: str, seed: int, num_steps: int, cfg_strength: float,
|
98 |
duration: float):
|