Note: Currently we support Linux and Windows platforms and Python 3.6.
Note: Windows platform requires Git for Windows (for example, git), Visual Studio 2015/2017 with C++ build tools installed.
Warning: Python 3.5 is not supported!.
-
Create a virtual environment with Python 3.6:
virtualenv env
-
Activate the environment:
- Linux source:
./env/bin/activate
- Windows:
.\env\Scripts\activate.bat
- Linux source:
-
Install the following packages inside this virtual environment:
- Tensorflow (version -- 1.10.0)
pip install tensorflow==1.10.0
- DeepPavlov
pip install deeppavlov
- Tensorflow (version -- 1.10.0)
dummy api hosted at http://13.233.158.98:8888/chat/
usage:
send a post request to http://13.233.158.98:8888/chat/ containing data as
question="user query"
sample usage using ajax in jquery
hosted at http://13.233.158.98:8888/para/
send a GET request to get the paragraph from the database
Response ⇒ "paragraph_text"
To update the paragraph, send a POST request with data as:
"paragraph=paragraph_text"
Response ⇒ "updated_paragraph_text"
-
Insert key-value = http://13.233.158.98:8888/values/insert/
Request ⇒ “key=”+key+”&value=”+value
Response ⇒ [ {‘key’:’abc’, ‘value’:100000 } , {‘key’: ‘def’, ‘value’: 100 } ] -
Update key-value = http://13.233.158.98:8888/values/update/
KEY WILL NOT BE UPDATED
Request ⇒ “key=”+key+”&value=”+value
Response ⇒ [ {‘key’:’abc’, ‘value’:100000 } , {‘key’: ‘def’, ‘value’: 100 } ] -
Delete key = http://13.233.158.98:8888/values/delete/
Request ⇒ “key=”+key
Response ⇒ [ {‘key’:’abc’, ‘value’:100000 } , {‘key’: ‘def’, ‘value’: 100 } ] -
Read table = http://13.233.158.98:8888/values/read/
Request ⇒ None
Response ⇒ [ {‘key’:’abc’, ‘value’:100000 } , {‘key’: ‘def’, ‘value’: 100 } ]