frorozcol commited on
Commit
5b4d0fb
·
1 Parent(s): b1b12c5
.gitignore ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ *.wav
2
+ *.mp3
3
+ vscode
.vscode/launch.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "configurations": [
3
+ {
4
+ "name": "Streamlit",
5
+ "type": "python",
6
+ "request": "launch",
7
+ "module": "streamlit",
8
+ "args": ["run", "app.py"],
9
+ }
10
+ ]
11
+ }
src/__pycache__/preprosecing.cpython-310.pyc CHANGED
Binary files a/src/__pycache__/preprosecing.cpython-310.pyc and b/src/__pycache__/preprosecing.cpython-310.pyc differ
 
src/preprosecing.py CHANGED
@@ -210,6 +210,7 @@ def predict(features):
210
  model = load_model()
211
  prediction = model.predict(features)
212
  mode = st.mode(prediction)
 
213
  return CLASSES[mode], prediction
214
 
215
  def cuts_silence(audio):
 
210
  model = load_model()
211
  prediction = model.predict(features)
212
  mode = st.mode(prediction)
213
+ prediction = list(map(lambda x: CLASSES[x], prediction))
214
  return CLASSES[mode], prediction
215
 
216
  def cuts_silence(audio):