Skip to content

Files

Latest commit

 

History

History

service

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Categorizer web server

Usage

  1. Copy models you intend to use to './models'
  2. sudo pip install -r requirements.txt
  3. python server.py 8080

That starts loads the models and starts the server. To test the service run:

curl -X POST localhost:8080/categorize -d '{"body": "Lorem ipsum dolor sit amet, consectetuer adipiscing elit."}'