diff --git a/examples/hf_demo_space/api.py b/examples/hf_demo_space/api.py index 23aef67..9d5a3ae 100644 --- a/examples/hf_demo_space/api.py +++ b/examples/hf_demo_space/api.py @@ -17,7 +17,11 @@ @app.get("/", response_class=HTMLResponse) async def landing_page(request: Request): """Serve the AgentTide landing page""" - return templates.TemplateResponse("landing_page.html", {"request": request}) + demo_base_url = os.getenv("DEMO_BASE_URL", "") + return templates.TemplateResponse( + "landing_page.html", + {"request": request, "DEMO_BASE_URL": demo_base_url} + ) @app.get("/health") async def health_check(): diff --git a/examples/hf_demo_space/static/landing_page.html b/examples/hf_demo_space/static/landing_page.html index 3667023..d66f953 100644 --- a/examples/hf_demo_space/static/landing_page.html +++ b/examples/hf_demo_space/static/landing_page.html @@ -555,7 +555,7 @@