Spaces:
Runtime error
Runtime error
chidojawbreaker
commited on
Commit
•
df01bcd
1
Parent(s):
d4f32bf
Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,7 @@ from sklearn.preprocessing import StandardScaler
|
|
7 |
from sklearn import preprocessing
|
8 |
from sklearn.model_selection import train_test_split
|
9 |
|
10 |
-
dataset = pd.read_csv('
|
11 |
-
dataset = dataset.drop('filename',axis=1)
|
12 |
x = dataset.iloc[:, :-1].values
|
13 |
y = dataset.iloc[:, -1].values
|
14 |
encoder = preprocessing.LabelEncoder()
|
@@ -17,7 +16,7 @@ x_train, x_test, y_train, y_test = train_test_split(x, y, test_size = 0.2, rando
|
|
17 |
sc = StandardScaler()
|
18 |
sc = sc.fit(x_train)
|
19 |
|
20 |
-
model = joblib.load('
|
21 |
|
22 |
def predictor(audio_filename):
|
23 |
y, sr = librosa.load(audio_filename, mono=True, duration=5)
|
|
|
7 |
from sklearn import preprocessing
|
8 |
from sklearn.model_selection import train_test_split
|
9 |
|
10 |
+
dataset = pd.read_csv('125_.csv')
|
|
|
11 |
x = dataset.iloc[:, :-1].values
|
12 |
y = dataset.iloc[:, -1].values
|
13 |
encoder = preprocessing.LabelEncoder()
|
|
|
16 |
sc = StandardScaler()
|
17 |
sc = sc.fit(x_train)
|
18 |
|
19 |
+
model = joblib.load('125_.pkl')
|
20 |
|
21 |
def predictor(audio_filename):
|
22 |
y, sr = librosa.load(audio_filename, mono=True, duration=5)
|