Spaces:
Sleeping
Sleeping
Commit ·
5d31d6a
1
Parent(s): 2cab085
Changes for deployment+++
Browse files
main.py
CHANGED
|
@@ -23,6 +23,11 @@ app.include_router(ml_models.router)
|
|
| 23 |
app.include_router(chat.router)
|
| 24 |
app.include_router(assisstant.router)
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
@app.exception_handler(StarletteHTTPException)
|
| 27 |
async def custom_404_handler(request: Request, exc: StarletteHTTPException):
|
| 28 |
if exc.status_code == 404:
|
|
|
|
| 23 |
app.include_router(chat.router)
|
| 24 |
app.include_router(assisstant.router)
|
| 25 |
|
| 26 |
+
|
| 27 |
+
@app.get("/")
|
| 28 |
+
async def root():
|
| 29 |
+
return RedirectResponse(url="/login")
|
| 30 |
+
|
| 31 |
@app.exception_handler(StarletteHTTPException)
|
| 32 |
async def custom_404_handler(request: Request, exc: StarletteHTTPException):
|
| 33 |
if exc.status_code == 404:
|