mramirez2001 commited on
Commit
4ece3bb
·
verified ·
1 Parent(s): c21e1db

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -85,7 +85,7 @@ def extract_word_level_features(audio_path):
85
  "word": segment['word'].strip(),
86
  "start": round(segment['start'], 2),
87
  "end": round(segment['end'], 2),
88
- "energy": round(rms_energy, 4)
89
  })
90
  return features_list
91
  except Exception as e:
 
85
  "word": segment['word'].strip(),
86
  "start": round(segment['start'], 2),
87
  "end": round(segment['end'], 2),
88
+ "energy": round(float(rms_energy), 4)
89
  })
90
  return features_list
91
  except Exception as e: