Spaces:
Running
Running
DrishtiSharma
commited on
Commit
·
fa49488
1
Parent(s):
5b54474
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def fn(path):
|
|
37 |
wav, _ = apply_effects_file(path, EFFECTS)
|
38 |
|
39 |
#Extracting features
|
40 |
-
input = feature_extractor(wav.
|
41 |
|
42 |
with torch.no_grad():
|
43 |
logits = model(input).logits
|
|
|
37 |
wav, _ = apply_effects_file(path, EFFECTS)
|
38 |
|
39 |
#Extracting features
|
40 |
+
input = feature_extractor(wav.squeeze(0), return_tensors="pt", sampling_rate=16000).input_values.to(device)
|
41 |
|
42 |
with torch.no_grad():
|
43 |
logits = model(input).logits
|