fix: Resolve HF Container Error by moving dashboard to /dashboard/ and restoring root redirect
Browse files37 unmodified lines383940414243177 unmodified lines22122222322422522622737 unmodified linescontent={"detail": "Internal Error", "message": str(exc), "traceback": traceback.format_exc()},)# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ# Custom Professional "Judge Ready" Gradio Dashboard# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ177 unmodified linesif os.getenv("ENABLE_WEB_INTERFACE", "false").lower() == "true":custom_demo = build_custom_ui()app = gr.mount_gradio_app(app, custom_demo, path="/")def main():uvicorn.run("server.app:app", host="0.0.0.0", port=8000, reload=False)37 unmodified lines38394041424344454647177 unmodified lines22522622722822923023137 unmodified linescontent={"detail": "Internal Error", "message": str(exc), "traceback": traceback.format_exc()},)@app.get("/")async def root():return RedirectResponse(url="/dashboard/")# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ# Custom Professional "Judge Ready" Gradio Dashboard# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ177 unmodified linesif os.getenv("ENABLE_WEB_INTERFACE", "false").lower() == "true":custom_demo = build_custom_ui()app = gr.mount_gradio_app(app, custom_demo, path="/dashboard/")def main():uvicorn.run("server.app:app", host="0.0.0.0", port=8000, reload=False)
server/app.py+5-1