Just a quick connection of the huggingface pipeline for sentiment analysis (see here) with a small visual interface made with D3js.
by Hendrik Strobelt (MIT-IBM Watson AI Lab)
Create new Conda environment:
conda create -n hugging python=3.6
conda activate hugging
install flask:
conda install -c anaconda flask
install huggingface (and pytorch):
conda install pytorch -c pytorch
pip install transformers
conda activate hugging
python server.py
visit http://localhost:8888