Update driverpospredictionfinal.py
Browse files
driverpospredictionfinal.py
CHANGED
@@ -84,7 +84,7 @@ def hyperamter_tuning_paramter_grid():
|
|
84 |
}#'criterion': ['gini', 'entropy']
|
85 |
return parameter_grid
|
86 |
|
87 |
-
|
88 |
def prediction(req):
|
89 |
data = json.loads(req)
|
90 |
input_data = {}
|
|
|
84 |
}#'criterion': ['gini', 'entropy']
|
85 |
return parameter_grid
|
86 |
|
87 |
+
#@app.route('/predict',methods=['POST']) # api endpoint -any url(requests) with /predict will route to the method
|
88 |
def prediction(req):
|
89 |
data = json.loads(req)
|
90 |
input_data = {}
|