Fixed route bases
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Pünkösd Marcell 2020-09-14 02:05:14 +02:00
parent 0d42e1e492
commit 6551e2dba6
2 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,8 @@ from utils import json_required, storage, ensure_buckets
class CNNView(FlaskView): class CNNView(FlaskView):
route_base = 'cnn'
aimodel_schema = AIModelSchema(many=False) aimodel_schema = AIModelSchema(many=False)
aimodels_schema = AIModelSchema(many=True, exclude=['timestamp', 'details']) aimodels_schema = AIModelSchema(many=True, exclude=['timestamp', 'details'])
default_schema = DefaultSchema(many=False) default_schema = DefaultSchema(many=False)

View File

@ -12,6 +12,8 @@ from pyAudioAnalysis.audioTrainTest import load_model, load_model_knn
class SVMView(FlaskView): class SVMView(FlaskView):
route_base = 'svm'
aimodel_schema = AIModelSchema(many=False) aimodel_schema = AIModelSchema(many=False)
aimodels_schema = AIModelSchema(many=True, exclude=['timestamp', 'details']) aimodels_schema = AIModelSchema(many=True, exclude=['timestamp', 'details'])
default_schema = DefaultSchema(many=False) default_schema = DefaultSchema(many=False)