This is a simple Flask application that takes in user input consisting of a text and a question on that text and produces the answer using a pretrained BERT or DistilBert fine-tuned on the The Stanford Question Answering Dataset (SQuAD)
resources:
Using PIP
:
$ python -m pip install -r requirements.txt
Running the localhost server:
$ flask run
when in development, export the following environmental variable:
$ export FLASK_ENV=development
With this, you don't have to restart the server everytime you update your code.