Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
10 |
knn_vc = torch.hub.load('bshall/knn-vc', 'knn_vc', prematched=True, trust_repo=True, pretrained=True, device=device)
|
11 |
|
12 |
|
13 |
-
def convert_voice(src_wav_path:str, ref_wav_paths, top_k:int):
|
14 |
|
15 |
query_seq = knn_vc.get_features(src_wav_path)
|
16 |
matching_set = knn_vc.get_matching_set([ref_wav_paths])
|
|
|
10 |
knn_vc = torch.hub.load('bshall/knn-vc', 'knn_vc', prematched=True, trust_repo=True, pretrained=True, device=device)
|
11 |
|
12 |
|
13 |
+
def convert_voice(src_wav_path:str, ref_wav_paths:List, top_k:int):
|
14 |
|
15 |
query_seq = knn_vc.get_features(src_wav_path)
|
16 |
matching_set = knn_vc.get_matching_set([ref_wav_paths])
|