Simple streamlit UI, utilizing a bottle.py server,showcasing the Spacy entity recognition service. Please find the instructions below to run locally or via docker compose.
- Clone the project repo
- Once you have navigated to the project directory in terminal, run these commands:
docker-compose up
docker-compose build
- You will see the URL that can access the UI for the app, http://0.0.0.0:8081
- Input text into the text box, click run analysis, and view the results of the Named Entity Recognition service
Make sure you are using python3
After cloning the repo, navigate into ther runLocal directory
Once in the directory, run: pip3 install -r requirements.txt
Get the Bottle Server Started First
-
python3 server.py
-
Leave this terminal open and open a new terminal window
Starting the Streamlit UI
- In the new terminal window input
streamlit run simpleUI.py
- You browser should automatically open up, but if not go to the web browser and navigate to the Local URL link noted in terminal
- Input text into the text box
- Click on the button 'Run Service'
- The text data will be sent via HTTP post to our bottle server. The bottle server utilizes spacy and runs the named entity recognition and returns the JSON result to our UI via GET which populates on the screen