Spaces:
Sleeping
Sleeping
Hugo Flores Garcia
commited on
Commit
·
d51eb6d
1
Parent(s):
3efca14
disable wavebeat for now
Browse files- app.py +3 -4
- conf/interface.yml +1 -1
app.py
CHANGED
@@ -97,8 +97,7 @@ def _vamp(data, return_mask=False):
|
|
97 |
if data[beat_mask_width] > 0:
|
98 |
beat_mask = interface.make_beat_mask(
|
99 |
sig,
|
100 |
-
|
101 |
-
after_beat_s=(data[beat_mask_width]/1000)/2,
|
102 |
mask_upbeats=not data[beat_mask_downbeats],
|
103 |
)
|
104 |
mask = pmask.mask_and(mask, beat_mask)
|
@@ -350,7 +349,7 @@ with gr.Blocks() as demo:
|
|
350 |
|
351 |
# mask settings
|
352 |
with gr.Column():
|
353 |
-
vamp_button = gr.Button("vamp!!!")
|
354 |
output_audio = gr.Audio(
|
355 |
label="output audio",
|
356 |
interactive=False,
|
@@ -398,7 +397,7 @@ with gr.Blocks() as demo:
|
|
398 |
outputs=[output_audio, audio_mask],
|
399 |
)
|
400 |
|
401 |
-
api_vamp_button = gr.Button("api vamp")
|
402 |
api_vamp_button.click(
|
403 |
fn=api_vamp,
|
404 |
inputs=_inputs,
|
|
|
97 |
if data[beat_mask_width] > 0:
|
98 |
beat_mask = interface.make_beat_mask(
|
99 |
sig,
|
100 |
+
after_beat_s=(data[beat_mask_width]/1000),
|
|
|
101 |
mask_upbeats=not data[beat_mask_downbeats],
|
102 |
)
|
103 |
mask = pmask.mask_and(mask, beat_mask)
|
|
|
349 |
|
350 |
# mask settings
|
351 |
with gr.Column():
|
352 |
+
vamp_button = gr.Button("generate (vamp)!!!")
|
353 |
output_audio = gr.Audio(
|
354 |
label="output audio",
|
355 |
interactive=False,
|
|
|
397 |
outputs=[output_audio, audio_mask],
|
398 |
)
|
399 |
|
400 |
+
api_vamp_button = gr.Button("api vamp", visible=False)
|
401 |
api_vamp_button.click(
|
402 |
fn=api_vamp,
|
403 |
inputs=_inputs,
|
conf/interface.yml
CHANGED
@@ -3,7 +3,7 @@ Interface.coarse2fine_ckpt: ./models/vampnet/c2f.pth
|
|
3 |
Interface.codec_ckpt: ./models/vampnet/codec.pth
|
4 |
Interface.coarse_chunk_size_s: 10
|
5 |
Interface.coarse2fine_chunk_size_s: 3
|
6 |
-
Interface.wavebeat_ckpt: ./models/wavebeat.pth
|
7 |
|
8 |
AudioLoader.sources:
|
9 |
- /media/CHONK/null
|
|
|
3 |
Interface.codec_ckpt: ./models/vampnet/codec.pth
|
4 |
Interface.coarse_chunk_size_s: 10
|
5 |
Interface.coarse2fine_chunk_size_s: 3
|
6 |
+
# Interface.wavebeat_ckpt: ./models/wavebeat.pth
|
7 |
|
8 |
AudioLoader.sources:
|
9 |
- /media/CHONK/null
|