Spaces:
Running
Running
Update api.py
Browse files
api.py
CHANGED
|
@@ -53,12 +53,7 @@ app.add_middleware(
|
|
| 53 |
|
| 54 |
# APIs
|
| 55 |
@app.get("/")
|
| 56 |
-
async def welcome():
|
| 57 |
-
return {"message":"Hello, this is the API server for Sentimetry. Go to /docs to test the APIs."}
|
| 58 |
-
|
| 59 |
-
@app.get("/d")
|
| 60 |
async def docs():
|
| 61 |
-
# return {"message":"Hello, this is the API server for Sentimetry. Go to /docs to test the APIs."}
|
| 62 |
return RedirectResponse(url="/docs")
|
| 63 |
|
| 64 |
@app.post("/logistic-regression")
|
|
|
|
| 53 |
|
| 54 |
# APIs
|
| 55 |
@app.get("/")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
async def docs():
|
|
|
|
| 57 |
return RedirectResponse(url="/docs")
|
| 58 |
|
| 59 |
@app.post("/logistic-regression")
|