Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deepraj1729/tchatbot-api
A Flask REST API to serve trained ChatBots using Tensorflow Serving and Docker Containers
https://github.com/deepraj1729/tchatbot-api
api-rest chatbot deep-learning flask flask-restful framwork keras nlp preprocessing requests tensorflow tf-serving
Last synced: 8 days ago
JSON representation
A Flask REST API to serve trained ChatBots using Tensorflow Serving and Docker Containers
- Host: GitHub
- URL: https://github.com/deepraj1729/tchatbot-api
- Owner: deepraj1729
- License: apache-2.0
- Created: 2020-07-02T12:16:25.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T23:57:44.000Z (over 1 year ago)
- Last Synced: 2024-05-01T15:29:49.715Z (7 months ago)
- Topics: api-rest, chatbot, deep-learning, flask, flask-restful, framwork, keras, nlp, preprocessing, requests, tensorflow, tf-serving
- Language: Python
- Homepage:
- Size: 1.01 MB
- Stars: 12
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TChatBot-API
A `Flask REST API` service to serve trained `ChatBots` using `Tensorflow Serving` and `Docker containers`# Architecture of the Application:
![architecture](architecture.png)# Usage:
- Create a virtual environment
- Activate the environment
- Clone the repository inside the environment:
git clone https://github.com/deepraj1729/TChatBot-API.git
- Navigate to the directory `TChatBot-API`
- Install the requirements with this command:pip install -r requirements.txt
- To run the API from both server side and client side:
- Open `2 terminals` from the current location (from inside `TChatBot-API folder`)
- One for `Server-Side`
- One for `Client-Side`
- Run this command in terminal 1 (`Server-Side`) to run the Flask server
python app.py
- Run this command in terminal 2 (`Client-Side`) to run the chat session
python main.py
- To `end/quit` Chat session in the `client-side` terminal, type `quit` and `enter`
- To `end/quit` Server session in the `server-side` terminal, use `ctrl + c`