Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -200,7 +200,10 @@ def harp_vamp(input_audio_file, periodic_p, n_mask_codebooks, pitch_shift_amt):
|
|
| 200 |
OUT_DIR.mkdir(exist_ok=True)
|
| 201 |
outpath = OUT_DIR / f"{uuid.uuid4()}.wav"
|
| 202 |
sig.write(outpath)
|
| 203 |
-
|
|
|
|
|
|
|
|
|
|
| 204 |
|
| 205 |
|
| 206 |
with gr.Blocks() as demo:
|
|
|
|
| 200 |
OUT_DIR.mkdir(exist_ok=True)
|
| 201 |
outpath = OUT_DIR / f"{uuid.uuid4()}.wav"
|
| 202 |
sig.write(outpath)
|
| 203 |
+
from pyharp import OutputLabel
|
| 204 |
+
output_labels = list()
|
| 205 |
+
output_labels.append(OutputLabel(label='~', t=0.0, description='generated audio'))
|
| 206 |
+
return outpath, output_labels
|
| 207 |
|
| 208 |
|
| 209 |
with gr.Blocks() as demo:
|