The first think you have to do is install the requirements. You can do it with the following command:
pip install -r requirements.txt
The model used on this application is the checkpoint provided by UniLM that you can download from here: here.
Once you downloaded the checkpoint create the pretrained_models/
directory and save the checkpoint there.
The host
and port
arguments are only necessary if you want to open a server through internet. If you want to just open the server for local usage skip those parameters.
export FLASK_APP=server.py
flask run --host=YOUR_LOCAL_IP --port=PORT
$env:FLASK_APP = "server.py"
flask run --host=YOUR_LOCAL_IP --port=PORT
This application is powered by the following resources:
- Transformers (🤗 Huggingface)
- Flair (FlairNLP)
- UniLM (Microsoft)