mirror of
https://github.com/explosion/spaCy.git
synced 2025-09-02 02:14:56 +03:00
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:
parent
188a7d00eb
commit
8e5c0707d2
|
@ -80,7 +80,7 @@ def serve(
|
|||
minify: bool = False,
|
||||
options: Dict[str, Any] = {},
|
||||
manual: bool = False,
|
||||
port: int = 5000,
|
||||
port: int = 5002,
|
||||
host: str = "0.0.0.0",
|
||||
) -> None:
|
||||
"""Serve displaCy visualisation.
|
||||
|
|
Loading…
Reference in New Issue
Block a user