diff --git a/server.py b/server.py index e39b150..eeedb6a 100644 --- a/server.py +++ b/server.py @@ -2,6 +2,6 @@ app = FastAPI() -@app.post("/predict") +@app.get("/predict") async def predict(): return {"prediction": "Hello, World!"} diff --git a/vercel.json b/vercel.json index 3f01082..20b7ff2 100644 --- a/vercel.json +++ b/vercel.json @@ -1,7 +1,7 @@ { "builds": [ { - "src": "main.py", + "src": "server.py", "use": "@vercel/python" } ],