SuggestU's sentence-relater API
- For Demo, click here
- Sample URLs:
###DEPLOYMENT NOTES
-
Export env var 'GoogleNews-vectors-negative300.bin' as BINARY_PATH
-
For production server, ensure that:
- In config.py:
PORT = 80OR whatever you want it to be. - In config.py:
DEBUG = False(to prevent 'restart with reloading') - (Optionally) In ./start:
COMMAND="sudo python run.py"is not commented out. (in case you decide to run it on port 80)
Tip: Use
$ nohup ./startfor a quick deployment. And change your secret/CSRF keys. - In config.py:
-
For Development server (Recommended: Skip step-2), ensure that:
-
In config.py:
PORT = 5000 -
(Optionally) In config.py:
DEBUG = True- setting
DEBUG = Trueloads the app twice. And we're loading a huge vector space.
- setting
-
In config.py:
COMMAND="sudo python run.py"is commented (i.e., run app without sudo)
-