Spaces:
Sleeping
Sleeping
deveix
commited on
Commit
•
10ab9f9
1
Parent(s):
d8a69da
change models
Browse files- app/main.py +3 -3
app/main.py
CHANGED
@@ -182,10 +182,10 @@ async def get_answer(item: Item, token: str = Depends(verify_token)):
|
|
182 |
raise HTTPException(status_code=500, detail=str(e))
|
183 |
|
184 |
# naive bayes
|
185 |
-
model = joblib.load('app/
|
186 |
pca = joblib.load('app/pca.pkl')
|
187 |
-
scaler = joblib.load('app/
|
188 |
-
label_encoder = joblib.load('app/
|
189 |
|
190 |
def preprocess_audio(audio_data, rate):
|
191 |
audio_data = nr.reduce_noise(y=audio_data, sr=rate)
|
|
|
182 |
raise HTTPException(status_code=500, detail=str(e))
|
183 |
|
184 |
# naive bayes
|
185 |
+
model = joblib.load('app/1713661391.0946255_trained_model.joblib')
|
186 |
pca = joblib.load('app/pca.pkl')
|
187 |
+
scaler = joblib.load('app/1713661464.8205004_scaler.joblib')
|
188 |
+
label_encoder = joblib.load('app/1713661470.6730225_label_encoder.joblib')
|
189 |
|
190 |
def preprocess_audio(audio_data, rate):
|
191 |
audio_data = nr.reduce_noise(y=audio_data, sr=rate)
|