LazyBoss commited on
Commit
6f4e285
·
verified ·
1 Parent(s): 054f8d0

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -50,7 +50,7 @@ async def predict(data: InputData):
50
  # Convert the prediction to a string (or any other format you prefer)
51
  result = "Fraud" if prediction[0] == 1 else "Not a Fraud"
52
  # result = prediction
53
- print(prediction)
54
 
55
  return {"prediction": result}
56
  # 4. Run the API with uvicorn
 
50
  # Convert the prediction to a string (or any other format you prefer)
51
  result = "Fraud" if prediction[0] == 1 else "Not a Fraud"
52
  # result = prediction
53
+ print(prediction[1])
54
 
55
  return {"prediction": result}
56
  # 4. Run the API with uvicorn