-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.py
25 lines (22 loc) · 791 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
'''
This is the script that would call our other functions and would hold the GUI
Currently used as a placeholder to test functions
'''
# Import functions from another file
from generate_dataframe import *
from batch_preprocess import *
import librosa
import numpy as np
import tensorflow as tf
from tensorflow import keras
from sklearn.preprocessing import LabelEncoder
# Process all the audio files then generate a dataframe
# Don't need to do this every time
# !!!WARNING!!! Deletes files in new folder, then copies from old folder, if old folder is empty it will only delete
batch_preprocess()
batch_preprocess_test()
# Generates the dataframe
df = generate_dataframe()
# Don't need the first value since it's the directory and we've included that
df = df.drop(df.index[0])
print(df)