jethrowang commited on
Commit
9300764
·
verified ·
1 Parent(s): cda51a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -112,7 +112,7 @@ def predict(audio_record, audio_upload, threshold):
112
 
113
  # Feature extraction
114
  inputs = mel_spectrogram(chunk)
115
- inputs = log_mel_spectrogram(inputs).to(device).unsqueeze(0)
116
 
117
  # Model inference
118
  with torch.no_grad():
 
112
 
113
  # Feature extraction
114
  inputs = mel_spectrogram(chunk)
115
+ inputs = log_mel_spectrogram(inputs).unsqueeze(0)
116
 
117
  # Model inference
118
  with torch.no_grad():