HAL1993 commited on
Commit
f419647
·
verified ·
1 Parent(s): 787ebcf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -363,7 +363,7 @@ def create_demo():
363
  }
364
  </style>
365
  <script>
366
- const allowedPath = /^\\/spaceishere(\\/.*)?$/;
367
  if (!allowedPath.test(window.location.pathname)) {
368
  document.body.innerHTML = '<h1 style="color:#ef4444;font-family:sans-serif;text-align:center;margin-top:100px;">500 Internal Server Error</h1>';
369
  throw new Error('500');
@@ -434,7 +434,7 @@ def create_demo():
434
 
435
  app = FastAPI()
436
  demo = create_demo()
437
- app.mount("/spaceishere", demo.app)
438
 
439
  @app.get("/{path:path}")
440
  async def catch_all(path: str):
 
363
  }
364
  </style>
365
  <script>
366
+ const allowedPath = /^\\/y7u8i9o0p1l2k3j4h5g6f7d8s9a0q1w2e3r4t5y6u7i8o9p0l1k2j3h4g5f6d7s8(\\/.*)?$/;
367
  if (!allowedPath.test(window.location.pathname)) {
368
  document.body.innerHTML = '<h1 style="color:#ef4444;font-family:sans-serif;text-align:center;margin-top:100px;">500 Internal Server Error</h1>';
369
  throw new Error('500');
 
434
 
435
  app = FastAPI()
436
  demo = create_demo()
437
+ app.mount("/y7u8i9o0p1l2k3j4h5g6f7d8s9a0q1w2e3r4t5y6u7i8o9p0l1k2j3h4g5f6d7s8", demo.app)
438
 
439
  @app.get("/{path:path}")
440
  async def catch_all(path: str):