from flask import Flask , request import numpy as np import pickle import pandas as pd import flasgger from flasgger import Swagger app = Flask ( __name__ ) Swagger ( app ) pickle_in = open ( "classifier.pkl" , "rb" ) classifier = pickle . load ( pickle_in ) @ app . route ( '/' ) def welcome (): return "Welcome All" @ app . route ( '/predict' , methods = [ "Get" ]) def predict_note_authentication (): """Let's Authenticate the Banks Note This is using docstrings for specifications. --- parameters: - name: variance in: query type: number required: true - name: skewness in: query type: number required: true - name: curtosis in: query type: number required: true - name: entropy in: query type: number required: true responses: 200: ...
“A year spent in artificial intelligence is enough to make one believe in God.”