change default port to 5002

Apple apparently now hogs localhost:5000 for their AirPlay devices.
https://stackoverflow.com/questions/70913242/access-to-localhost-was-denied-you-dont-have-authorisation-to-view-this-page-h
Given that many users are likely to serve displacy to their localhost, it might be nice to change the default port to something like 5002 (suggested above). Otherwise, users on macos Monterey will encounter a permission denied error (happened in my team).
This commit is contained in:
Mario Angst 2022-11-11 13:04:53 +01:00 committed by GitHub
parent 188a7d00eb
commit 8e5c0707d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,7 @@ def serve(
minify: bool = False, minify: bool = False,
options: Dict[str, Any] = {}, options: Dict[str, Any] = {},
manual: bool = False, manual: bool = False,
port: int = 5000, port: int = 5002,
host: str = "0.0.0.0", host: str = "0.0.0.0",
) -> None: ) -> None:
"""Serve displaCy visualisation. """Serve displaCy visualisation.