Spaces:
Runtime error
Runtime error
carlfeynman
commited on
Commit
•
fccfd79
1
Parent(s):
27ed54f
api updated
Browse files
server.py
CHANGED
@@ -10,6 +10,6 @@ app.mount("/static", StaticFiles(directory=Path("static")), name="static")
|
|
10 |
async def root():
|
11 |
return FileResponse("static/index.html")
|
12 |
|
13 |
-
@app.
|
14 |
async def predict():
|
15 |
return {"prediction": "Hello, World!"}
|
|
|
10 |
async def root():
|
11 |
return FileResponse("static/index.html")
|
12 |
|
13 |
+
@app.post("/predict")
|
14 |
async def predict():
|
15 |
return {"prediction": "Hello, World!"}
|