Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
awantik authored Nov 25, 2019
1 parent de4168d commit 2bed8a7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions flask_ml_api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!flask/bin/python
from flask import Flask, jsonify, request
import joblib
import pandas as pd

app = Flask(__name__)

@app.route('/predict/tx', methods=['GET'])
def create_task():
tx_data = request.json
#model = joblib.load('model0.pipeline')
model.predict([[]])
#tx_data['P'] = model.best_estimator_.predict(df)[0]
#cwd.write_json_table(tx_data)
#tx_data['P'] = str(tx_data['P'])
return jsonify("Hello World"), 201

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

0 comments on commit 2bed8a7

Please sign in to comment.