carlfeynman commited on
Commit
9aa266f
1 Parent(s): bfc39e7
Files changed (2) hide show
  1. server.py +1 -1
  2. vercel.json +1 -1
server.py CHANGED
@@ -2,6 +2,6 @@ from fastapi import FastAPI
2
 
3
  app = FastAPI()
4
 
5
- @app.post("/predict")
6
  async def predict():
7
  return {"prediction": "Hello, World!"}
 
2
 
3
  app = FastAPI()
4
 
5
+ @app.get("/predict")
6
  async def predict():
7
  return {"prediction": "Hello, World!"}
vercel.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "builds": [
3
  {
4
- "src": "main.py",
5
  "use": "@vercel/python"
6
  }
7
  ],
 
1
  {
2
  "builds": [
3
  {
4
+ "src": "server.py",
5
  "use": "@vercel/python"
6
  }
7
  ],