Created
July 16, 2024 17:33
-
-
Save sreeharibs/bd9bac4d47f3936acb8c2d618893ef0a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import randint | |
from fastapi import FastAPI | |
app = FastAPI() | |
@app.get("/") | |
async def root(): | |
# cust_id, risk_score [1-100] | |
risk_data = [ | |
{"customer_id": randint(1, 10000), "risk_score": randint(1, 100)} | |
for _ in range(1000) | |
] | |
return risk_data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment