Zhen Ye Claude Opus 4.6 (1M context) commited on
Commit
39a5620
·
1 Parent(s): 7b80bd1

feat(demo): setup /demo mount and copy demo HTML

Browse files

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Files changed (2) hide show
  1. app.py +1 -0
  2. demo/index.html +0 -0
app.py CHANGED
@@ -106,6 +106,7 @@ async def add_no_cache_header(request: Request, call_next):
106
  response.headers["Expires"] = "0"
107
  return response
108
 
 
109
  _FRONTEND_DIR = Path(__file__).with_name("frontend")
110
  if _FRONTEND_DIR.exists():
111
  app.mount("/app", StaticFiles(directory=_FRONTEND_DIR, html=True), name="frontend")
 
106
  response.headers["Expires"] = "0"
107
  return response
108
 
109
+ app.mount("/demo", StaticFiles(directory="demo", html=True), name="demo")
110
  _FRONTEND_DIR = Path(__file__).with_name("frontend")
111
  if _FRONTEND_DIR.exists():
112
  app.mount("/app", StaticFiles(directory=_FRONTEND_DIR, html=True), name="frontend")
demo/index.html ADDED
The diff for this file is too large to render. See raw diff