Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -54,8 +54,8 @@ def similarity_fn(path1, path2):
|
|
54 |
if not (path1 and path2):
|
55 |
return '<b style="color:red">ERROR: Please record audio for *both* speakers!</b>'
|
56 |
|
57 |
-
wav1, _ = apply_effects_file(path1, EFFECTS, format=
|
58 |
-
wav2, _ = apply_effects_file(path2, EFFECTS, format=
|
59 |
print(wav1.shape, wav2.shape)
|
60 |
|
61 |
input1 = feature_extractor(wav1.squeeze(0), return_tensors="pt", sampling_rate=16000).input_values.to(device)
|
|
|
54 |
if not (path1 and path2):
|
55 |
return '<b style="color:red">ERROR: Please record audio for *both* speakers!</b>'
|
56 |
|
57 |
+
wav1, _ = apply_effects_file(path1, EFFECTS, format=path1.split(".")[-1])
|
58 |
+
wav2, _ = apply_effects_file(path2, EFFECTS, format=path2.split(".")[-1])
|
59 |
print(wav1.shape, wav2.shape)
|
60 |
|
61 |
input1 = feature_extractor(wav1.squeeze(0), return_tensors="pt", sampling_rate=16000).input_values.to(device)
|