Spaces:
Running
on
Zero
Running
on
Zero
Update webui.py
Browse files
webui.py
CHANGED
@@ -51,6 +51,7 @@ def preprocess_audio(audio_path, sr=24000):
|
|
51 |
|
52 |
|
53 |
# audio reconstruction function
|
|
|
54 |
@torch.no_grad()
|
55 |
def reconstruct_audio(audio):
|
56 |
source_audio = preprocess_audio(audio)
|
@@ -64,6 +65,7 @@ def reconstruct_audio(audio):
|
|
64 |
|
65 |
|
66 |
# voice conversion function
|
|
|
67 |
@torch.no_grad()
|
68 |
def voice_conversion(source_audio, target_audio):
|
69 |
source_audio = preprocess_audio(source_audio)
|
|
|
51 |
|
52 |
|
53 |
# audio reconstruction function
|
54 |
+
@spaces.GPU
|
55 |
@torch.no_grad()
|
56 |
def reconstruct_audio(audio):
|
57 |
source_audio = preprocess_audio(audio)
|
|
|
65 |
|
66 |
|
67 |
# voice conversion function
|
68 |
+
@spaces.GPU
|
69 |
@torch.no_grad()
|
70 |
def voice_conversion(source_audio, target_audio):
|
71 |
source_audio = preprocess_audio(source_audio)
|