Hecheng0625 commited on
Commit
606a181
1 Parent(s): 1e5ac1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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():