Skip to content

Commit

Permalink
modify prometheus
Browse files Browse the repository at this point in the history
  • Loading branch information
Chandru-21 committed Jun 28, 2024
1 parent 88aec9a commit 7f9ac30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def predict(loan_details: LoanPrediction):
pred = "Rejected"
return {"status":pred}


@app.post("/prediction_ui")
def predict_gui(Gender: str,
Married: str,
Expand Down Expand Up @@ -115,7 +116,7 @@ def predict_gui(Gender: str,

@app.post("/batch_prediction")
async def batch_predict(file: UploadFile = File(...)):

content = await file.read()
df = pd.read_csv(io.BytesIO(content),index_col=False)
print(df)
Expand Down

0 comments on commit 7f9ac30

Please sign in to comment.