Dataset: This model was trained on T5 model which uses C4 dataset(Common Crawl's web crawl corpus).
Files used:
- app.py: runs on 6000 port, given a sentence the system tries to find the different variations of the question for the user input
- logs: The file stores the logging of the service. The projects uses python standard logging to log date, time with information and error type.
- dockerfile: The file consits of various commands and libraries to run the file in the docker
- tensorflow(gpu)
- tensorflow-hub
- pytorch(CUDA 10.1)
- flask
- numpy
- transformers
requirements.txt: contains all the packages required to run the project. Run the below command to install the required libraries for the project pip install -r requirements.txt Pytorch version needs to be installed depending upon the CUDA Version from pytorch.org
- Build docker using the command docker build -t myname/myapp
- Run the docker using docker run -p 6000:6000 myname/myapp
Request Example: {"comment": query string}
Response Type: {"text" : answer string1 answer string2 answer string3}