Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -146,9 +146,9 @@ overlap_frame_len = 64
|
|
146 |
overlap_wave_len = overlap_frame_len * hop_length
|
147 |
bitrate = "320k"
|
148 |
|
|
|
149 |
@torch.no_grad()
|
150 |
@torch.inference_mode()
|
151 |
-
@spaces.GPU
|
152 |
def voice_conversion(source, target, diffusion_steps, length_adjust, inference_cfg_rate, n_quantizers, f0_condition, auto_f0_adjust, pitch_shift):
|
153 |
inference_module = model if not f0_condition else model_f0
|
154 |
mel_fn = to_mel if not f0_condition else to_mel_f0
|
|
|
146 |
overlap_wave_len = overlap_frame_len * hop_length
|
147 |
bitrate = "320k"
|
148 |
|
149 |
+
@spaces.GPU
|
150 |
@torch.no_grad()
|
151 |
@torch.inference_mode()
|
|
|
152 |
def voice_conversion(source, target, diffusion_steps, length_adjust, inference_cfg_rate, n_quantizers, f0_condition, auto_f0_adjust, pitch_shift):
|
153 |
inference_module = model if not f0_condition else model_f0
|
154 |
mel_fn = to_mel if not f0_condition else to_mel_f0
|