Commit ·
a75c1c5
1
Parent(s): bdf9957
Fix SyntaxError: move MMAUDIO_WINDOW constant above @spaces.GPU decorator
Browse files
app.py
CHANGED
|
@@ -352,9 +352,9 @@ def generate_taro(video_file, seed_val, cfg_scale, num_steps, mode,
|
|
| 352 |
# generate() handles all feature extraction + decoding internally.
|
| 353 |
# ================================================================== #
|
| 354 |
|
| 355 |
-
@spaces.GPU(duration=600)
|
| 356 |
MMAUDIO_WINDOW = 8.0 # seconds — MMAudio's fixed generation window
|
| 357 |
|
|
|
|
| 358 |
def generate_mmaudio(video_file, prompt, negative_prompt, seed_val,
|
| 359 |
cfg_strength, num_steps, num_samples):
|
| 360 |
"""MMAudio: flow-matching video-to-audio, 44.1 kHz, 8 s sliding window."""
|
|
|
|
| 352 |
# generate() handles all feature extraction + decoding internally.
|
| 353 |
# ================================================================== #
|
| 354 |
|
|
|
|
| 355 |
MMAUDIO_WINDOW = 8.0 # seconds — MMAudio's fixed generation window
|
| 356 |
|
| 357 |
+
@spaces.GPU(duration=600)
|
| 358 |
def generate_mmaudio(video_file, prompt, negative_prompt, seed_val,
|
| 359 |
cfg_strength, num_steps, num_samples):
|
| 360 |
"""MMAudio: flow-matching video-to-audio, 44.1 kHz, 8 s sliding window."""
|