Spaces:
Sleeping
Sleeping
databoysu commited on
Commit ·
7862856
1
Parent(s): 5070671
fix mount
Browse files- backend/app.py +7 -1
backend/app.py
CHANGED
|
@@ -30,7 +30,13 @@ app = create_app(
|
|
| 30 |
max_concurrent_envs=1,
|
| 31 |
)
|
| 32 |
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
|
| 36 |
def main() -> None:
|
|
|
|
| 30 |
max_concurrent_envs=1,
|
| 31 |
)
|
| 32 |
|
| 33 |
+
from fastapi.responses import RedirectResponse
|
| 34 |
+
|
| 35 |
+
@app.get("/", include_in_schema=False)
|
| 36 |
+
async def root_redirect():
|
| 37 |
+
return RedirectResponse(url="/web/")
|
| 38 |
+
|
| 39 |
+
app = gr.mount_gradio_app(app, demo, path="/web")
|
| 40 |
|
| 41 |
|
| 42 |
def main() -> None:
|