A simple python api which returns JSON data in the form of {input: ..., response: ..., accuracy: ...}.
I am using this as an educational project.
-Clone the repository.
git clone https://github.com/ragerlu/pythonChatbotApi.git
- After Installation, the api can be tested by following the below steps.
- In a terminal running:
python3 main.py
- Then going to a browser window and typing
http://127.0.0.1:5000/
into the address bar. - You should see 'Test Home Page' in the top left of the page.
- Finally append
api?input=hello
to the end of the current address in the address bar.
The resulting JSON response should be {input: "hello", response: "Hey there!", accuracy: 1}.