Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Finally to start the Python Bridge server, all you need to do is to execute the command:choose one of the following options:


Development server

For local testing only.

Code Block
languagetext
themeFadeToGrey
python server.py

...

 <Port Number>
Note
You must specify the port number, usually 5000.


Production server

For production environments.  Supports https and basic authentication.

Code Block
themeFadeToGrey
python server-cherrypy.py
Note
For security configuration refer to Python Bridge Configuration.



Note

If it's the first time starting Python Bridge, it will download a couple of models, among them BERT base uncased model, which has a size of roughly 4Gb. Python Bridge will not be ready until all the models are downloaded.

Once downloaded, next time you start Python Bridge it will be pretty fast.

...