Spaces:
Running on Zero
Running on Zero
Jack Wu commited on
Commit ·
d3011cb
1
Parent(s): 3b3c373
Fix: call get_random_seed(), add server_name to launch() for ZeroGPU
Browse files
app.py
CHANGED
|
@@ -580,7 +580,7 @@ with gr.Blocks(title="Video-to-Audio Generation") as demo:
|
|
| 580 |
with gr.Row():
|
| 581 |
with gr.Column():
|
| 582 |
taro_video = gr.Video(label="Input Video")
|
| 583 |
-
taro_seed = gr.Number(label="Seed (-1 = random)", value=get_random_seed, precision=0)
|
| 584 |
taro_cfg = gr.Slider(label="CFG Scale", minimum=1, maximum=15, value=8, step=0.5)
|
| 585 |
taro_steps = gr.Slider(label="Sampling Steps", minimum=10, maximum=50, value=25, step=1)
|
| 586 |
taro_mode = gr.Radio(label="Sampling Mode", choices=["sde", "ode"], value="sde")
|
|
@@ -641,7 +641,7 @@ with gr.Blocks(title="Video-to-Audio Generation") as demo:
|
|
| 641 |
mma_video = gr.Video(label="Input Video")
|
| 642 |
mma_prompt = gr.Textbox(label="Prompt", placeholder="e.g. footsteps on gravel")
|
| 643 |
mma_neg = gr.Textbox(label="Negative Prompt", placeholder="music, speech")
|
| 644 |
-
mma_seed = gr.Number(label="Seed (-1 = random)", value=get_random_seed, precision=0)
|
| 645 |
mma_cfg = gr.Slider(label="CFG Strength", minimum=1, maximum=10, value=4.5, step=0.5)
|
| 646 |
mma_steps = gr.Slider(label="Steps", minimum=10, maximum=50, value=25, step=1)
|
| 647 |
mma_dur = gr.Slider(label="Duration (s)", minimum=1, maximum=10, value=8, step=0.5)
|
|
@@ -693,7 +693,7 @@ with gr.Blocks(title="Video-to-Audio Generation") as demo:
|
|
| 693 |
hf_video = gr.Video(label="Input Video")
|
| 694 |
hf_prompt = gr.Textbox(label="Prompt", placeholder="e.g. rain hitting a metal roof")
|
| 695 |
hf_neg = gr.Textbox(label="Negative Prompt", value="noisy, harsh")
|
| 696 |
-
hf_seed = gr.Number(label="Seed (-1 = random)", value=get_random_seed, precision=0)
|
| 697 |
hf_guidance = gr.Slider(label="Guidance Scale", minimum=1, maximum=10, value=4.5, step=0.5)
|
| 698 |
hf_steps = gr.Slider(label="Steps", minimum=10, maximum=100, value=50, step=5)
|
| 699 |
hf_size = gr.Radio(label="Model Size", choices=["xl", "xxl"], value="xxl")
|
|
@@ -731,4 +731,4 @@ with gr.Blocks(title="Video-to-Audio Generation") as demo:
|
|
| 731 |
outputs=hf_slot_grps + hf_slot_vids + hf_slot_auds,
|
| 732 |
)
|
| 733 |
|
| 734 |
-
demo.queue().launch()
|
|
|
|
| 580 |
with gr.Row():
|
| 581 |
with gr.Column():
|
| 582 |
taro_video = gr.Video(label="Input Video")
|
| 583 |
+
taro_seed = gr.Number(label="Seed (-1 = random)", value=get_random_seed(), precision=0)
|
| 584 |
taro_cfg = gr.Slider(label="CFG Scale", minimum=1, maximum=15, value=8, step=0.5)
|
| 585 |
taro_steps = gr.Slider(label="Sampling Steps", minimum=10, maximum=50, value=25, step=1)
|
| 586 |
taro_mode = gr.Radio(label="Sampling Mode", choices=["sde", "ode"], value="sde")
|
|
|
|
| 641 |
mma_video = gr.Video(label="Input Video")
|
| 642 |
mma_prompt = gr.Textbox(label="Prompt", placeholder="e.g. footsteps on gravel")
|
| 643 |
mma_neg = gr.Textbox(label="Negative Prompt", placeholder="music, speech")
|
| 644 |
+
mma_seed = gr.Number(label="Seed (-1 = random)", value=get_random_seed(), precision=0)
|
| 645 |
mma_cfg = gr.Slider(label="CFG Strength", minimum=1, maximum=10, value=4.5, step=0.5)
|
| 646 |
mma_steps = gr.Slider(label="Steps", minimum=10, maximum=50, value=25, step=1)
|
| 647 |
mma_dur = gr.Slider(label="Duration (s)", minimum=1, maximum=10, value=8, step=0.5)
|
|
|
|
| 693 |
hf_video = gr.Video(label="Input Video")
|
| 694 |
hf_prompt = gr.Textbox(label="Prompt", placeholder="e.g. rain hitting a metal roof")
|
| 695 |
hf_neg = gr.Textbox(label="Negative Prompt", value="noisy, harsh")
|
| 696 |
+
hf_seed = gr.Number(label="Seed (-1 = random)", value=get_random_seed(), precision=0)
|
| 697 |
hf_guidance = gr.Slider(label="Guidance Scale", minimum=1, maximum=10, value=4.5, step=0.5)
|
| 698 |
hf_steps = gr.Slider(label="Steps", minimum=10, maximum=100, value=50, step=5)
|
| 699 |
hf_size = gr.Radio(label="Model Size", choices=["xl", "xxl"], value="xxl")
|
|
|
|
| 731 |
outputs=hf_slot_grps + hf_slot_vids + hf_slot_auds,
|
| 732 |
)
|
| 733 |
|
| 734 |
+
demo.queue().launch(server_name="0.0.0.0", server_port=7860)
|