saas.py 221 B

1234567
  1. from urllib.parse import urlsplit
  2. def is_wandb_domain(url: str) -> bool:
  3. """Returns whether the URL points to an official W&B server."""
  4. _, netloc, _, _, _ = urlsplit(url)
  5. return netloc.endswith("wandb.ai")