A question and answer app built on a BERT model pre-trained from SQuAD dataset.
- Open a terminal
cd <working_directory>
- Clone this repository
git clone https://github.com/leeping-ng/ML-NLP-BERT-QnA-App.git
- Download pre-trained model from https://www.dropbox.com/s/8jnulb2l4v7ikir/model.zip and extract to <working_directory>. For example, the path of
bert_config.json
should be <working_directory>/model/bert_config.json - Ensure that your environment contains the packages listed in
requirements.txt
- Run the app with the following command
streamlit run app.py
The following screenshot from the app shows a Q&A about a wiki page for the movie Pulp Fiction.