Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
86f2b45
1
Parent(s):
5d652d1
Update app.py
Browse files
app.py
CHANGED
@@ -176,7 +176,7 @@ model_synth = torch.load("synth2synth_full.pt", map_location="cpu").eval()
|
|
176 |
|
177 |
|
178 |
def inference(aud, effect_type):
|
179 |
-
x_p, sample_rate = torchaudio.load(aud
|
180 |
|
181 |
effect_type = effect_type #@param ["Compressor", "Reverb", "Amp", "Analog Delay", "Synth2Synth"]
|
182 |
gain_dB = -24 #@param {type:"slider", min:-24, max:24, step:0.1}
|
@@ -268,7 +268,7 @@ article = "<p style='text-align: center'><a href='https://arxiv.org/abs/1911.132
|
|
268 |
|
269 |
gr.Interface(
|
270 |
inference,
|
271 |
-
[gr.inputs.Audio(type="
|
272 |
gr.outputs.Audio(type="file", label="Output"),
|
273 |
title=title,
|
274 |
description=description,
|
|
|
176 |
|
177 |
|
178 |
def inference(aud, effect_type):
|
179 |
+
x_p, sample_rate = torchaudio.load(aud)
|
180 |
|
181 |
effect_type = effect_type #@param ["Compressor", "Reverb", "Amp", "Analog Delay", "Synth2Synth"]
|
182 |
gain_dB = -24 #@param {type:"slider", min:-24, max:24, step:0.1}
|
|
|
268 |
|
269 |
gr.Interface(
|
270 |
inference,
|
271 |
+
[gr.inputs.Audio(type="filepath", label="Input"),gr.inputs.Dropdown(choices=["Compressor", "Reverb", "Amp", "Analog Delay", "Synth2Synth"], type="value", default="Analog Delay", label="Effect Type")],
|
272 |
gr.outputs.Audio(type="file", label="Output"),
|
273 |
title=title,
|
274 |
description=description,
|