Update main.py
Browse files
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
|