** PreSumm modules was originally from https://github.com/nlpyang/PreSumm **
- generate summary on given text
- Install Flask
- pyrouge is an essential module for PreSumm to run, please follow the instruction here about how to install pyrouge
- Please install pytorch 1.1.0 with this comand
- GPU
conda install pytorch==1.1.0 torchvision==0.3.0 cudatoolkit=10.0 -c pytorch
- CPU Only
conda install pytorch-cpu==1.1.0 torchvision-cpu==0.3.0 cpuonly -c pytorch
- Run
python app.py
in the flask-summary directory. - Start web server by running
python app.py
while in the server_example directory. - Browse the examples using a browser. (defaults to port
5000
)