Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
import torch
|
| 2 |
import librosa
|
| 3 |
import soundfile as sf
|
|
@@ -77,7 +78,7 @@ def codec_inference(speech_path):
|
|
| 77 |
|
| 78 |
return result_path
|
| 79 |
|
| 80 |
-
|
| 81 |
def codec_voice_conversion(speech_path_a, speech_path_b):
|
| 82 |
|
| 83 |
with torch.no_grad():
|
|
|
|
| 1 |
+
import spaces
|
| 2 |
import torch
|
| 3 |
import librosa
|
| 4 |
import soundfile as sf
|
|
|
|
| 78 |
|
| 79 |
return result_path
|
| 80 |
|
| 81 |
+
@spaces.GPU
|
| 82 |
def codec_voice_conversion(speech_path_a, speech_path_b):
|
| 83 |
|
| 84 |
with torch.no_grad():
|