diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/index.html b/index.html index de9d526..85f24f5 100644 --- a/index.html +++ b/index.html @@ -70,6 +70,7 @@

Draw and Predict Handwritten Digits

+
diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..5eb0bf4 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +fastapi==0.68.1 +uvicorn==0.15.0 \ No newline at end of file diff --git a/server.py b/server.py new file mode 100644 index 0000000..e39b150 --- /dev/null +++ b/server.py @@ -0,0 +1,7 @@ +from fastapi import FastAPI + +app = FastAPI() + +@app.post("/predict") +async def predict(): + return {"prediction": "Hello, World!"} diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..3f01082 --- /dev/null +++ b/vercel.json @@ -0,0 +1,14 @@ +{ + "builds": [ + { + "src": "main.py", + "use": "@vercel/python" + } + ], + "routes": [ + { + "src": "/(.*)", + "dest": "server.py" + } + ] + } \ No newline at end of file