Spaces:
Runtime error
Runtime error
carlfeynman
commited on
Commit
•
9aa266f
1
Parent(s):
bfc39e7
update
Browse files- server.py +1 -1
- vercel.json +1 -1
server.py
CHANGED
@@ -2,6 +2,6 @@ from fastapi import FastAPI
|
|
2 |
|
3 |
app = FastAPI()
|
4 |
|
5 |
-
@app.
|
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": "
|
5 |
"use": "@vercel/python"
|
6 |
}
|
7 |
],
|
|
|
1 |
{
|
2 |
"builds": [
|
3 |
{
|
4 |
+
"src": "server.py",
|
5 |
"use": "@vercel/python"
|
6 |
}
|
7 |
],
|