binaychandra commited on
Commit
79d0f4a
·
1 Parent(s): 9a6bc8b

Added post method from get

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -78,7 +78,7 @@ def get_prediction_from_jobrun():
78
  print("Status Code:", response.status_code)
79
  return response.text
80
 
81
- @app.get("/get_prediction_on_userinput")
82
  def run_pred_pipeline(input: PredictionInput):
83
  print(f"Here is the input dict : {input.dict()}")
84
  print(f"Running the pipeline : {datetime.now().strftime('%Y-%m-%d %H:%M:%S')} ")
 
78
  print("Status Code:", response.status_code)
79
  return response.text
80
 
81
+ @app.post("/get_prediction_on_userinput")
82
  def run_pred_pipeline(input: PredictionInput):
83
  print(f"Here is the input dict : {input.dict()}")
84
  print(f"Running the pipeline : {datetime.now().strftime('%Y-%m-%d %H:%M:%S')} ")