from flask import Flask,jsonify,request
from classifier import get_prediction
app = Flask(__name__)

@app.route("/predict-alphabet",methods=["POST"])
def predict_data():
    image=request.file.get("alphabet")
    prediction=get_prediction(image)
    return jsonify({
        "prediction":prediction
    }),200

if (__name__ == "__main__"):
    app.run(debug=True)
