Spaces:
Running on Zero
Running on Zero
prismaudio-project commited on
Commit Β·
f6629de
1
Parent(s): 303133d
fix
Browse files
app.py
CHANGED
|
@@ -351,7 +351,7 @@ def run_diffusion(audio_latent: torch.Tensor, meta: dict, duration: float) -> to
|
|
| 351 |
|
| 352 |
# ==================== Full Inference Pipeline ====================
|
| 353 |
|
| 354 |
-
@spaces.GPU
|
| 355 |
def generate_audio_core(video_file, caption):
|
| 356 |
|
| 357 |
global DEVICE
|
|
@@ -535,23 +535,17 @@ def build_ui() -> gr.Blocks:
|
|
| 535 |
gr.Markdown("### π Run Log")
|
| 536 |
log_output = gr.Textbox(
|
| 537 |
label="",
|
| 538 |
-
lines=
|
| 539 |
-
max_lines=
|
| 540 |
interactive=False,
|
| 541 |
elem_classes=["mono"],
|
| 542 |
)
|
| 543 |
-
|
| 544 |
-
|
| 545 |
-
|
| 546 |
-
|
| 547 |
-
|
| 548 |
-
|
| 549 |
-
|
| 550 |
-
video_output = gr.Video(
|
| 551 |
-
label="Video + Generated Audio",
|
| 552 |
-
interactive=False,
|
| 553 |
-
height=400,
|
| 554 |
-
)
|
| 555 |
|
| 556 |
|
| 557 |
# ======================================================
|
|
|
|
| 351 |
|
| 352 |
# ==================== Full Inference Pipeline ====================
|
| 353 |
|
| 354 |
+
@spaces.GPU(duration=120)
|
| 355 |
def generate_audio_core(video_file, caption):
|
| 356 |
|
| 357 |
global DEVICE
|
|
|
|
| 535 |
gr.Markdown("### π Run Log")
|
| 536 |
log_output = gr.Textbox(
|
| 537 |
label="",
|
| 538 |
+
lines=10,
|
| 539 |
+
max_lines=15,
|
| 540 |
interactive=False,
|
| 541 |
elem_classes=["mono"],
|
| 542 |
)
|
| 543 |
+
gr.Markdown("### π€ Output")
|
| 544 |
+
video_output = gr.Video(
|
| 545 |
+
label="Video + Generated Audio",
|
| 546 |
+
interactive=False,
|
| 547 |
+
height=300,
|
| 548 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 549 |
|
| 550 |
|
| 551 |
# ======================================================
|