Update inference.py
Browse files- inference.py +1 -1
inference.py
CHANGED
|
@@ -69,7 +69,7 @@ class InferenceRecipe:
|
|
| 69 |
"""Load and preprocess audio."""
|
| 70 |
try:
|
| 71 |
# Convert to tensor
|
| 72 |
-
wav = torch.from_numpy(audio_array).float().unsqueeze(0)
|
| 73 |
|
| 74 |
# Resample if needed
|
| 75 |
if sample_rate != self.sample_rate:
|
|
|
|
| 69 |
"""Load and preprocess audio."""
|
| 70 |
try:
|
| 71 |
# Convert to tensor
|
| 72 |
+
wav = torch.from_numpy(audio_array).float().unsqueeze(0)
|
| 73 |
|
| 74 |
# Resample if needed
|
| 75 |
if sample_rate != self.sample_rate:
|