deveix commited on
Commit
5e0a3f7
·
1 Parent(s): ce0b64d
Files changed (1) hide show
  1. app/main.py +2 -2
app/main.py CHANGED
@@ -331,11 +331,11 @@ async def handle_audio(file: UploadFile = File(...)):
331
  # # Here you would add the feature extraction logic
332
  # features = extract_features(temp_filename)
333
  print("Extracted Features:", features)
334
-
335
- features = scaler.transform(features)
336
  # features = pca.transform(features)
337
  features = np.array(features).reshape(1, -1)
338
 
 
 
339
  # proceed with an inference
340
  results = model.predict(features)
341
  # decoded_predictions = [label_encoder.classes_[i] for i in results]
 
331
  # # Here you would add the feature extraction logic
332
  # features = extract_features(temp_filename)
333
  print("Extracted Features:", features)
 
 
334
  # features = pca.transform(features)
335
  features = np.array(features).reshape(1, -1)
336
 
337
+ features = scaler.transform(features)
338
+
339
  # proceed with an inference
340
  results = model.predict(features)
341
  # decoded_predictions = [label_encoder.classes_[i] for i in results]