From 9aa266fd6e7e3ed17f35fa7ef5eb31588a6c7769 Mon Sep 17 00:00:00 2001 From: carlfeynman Date: Thu, 14 Sep 2023 13:31:42 +0530 Subject: [PATCH] update --- server.py | 2 +- vercel.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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" } ],