mt5225/Sparrow
0
Sparrow UI
Description
Sparrow UI module implements UI logic with Streamlit for document data annotation, model training/tuning and document data extraction.
Dashboard UI:

Annotation UI:

Instructions
- Install
Streamlit docs: https://docs.streamlit.io/library/get-started/installation
pip install -r requirements.txt- Run
streamlit run main.pyRun in Docker container
- Build Docker image
docker build --tag katanaml/sparrow-ui .- Run Docker container
docker run -it --name sparrow-ui -p 7860:7860 katanaml/sparrow-ui:latestDeploy to Hugging Face Spaces
- Create new Space - https://huggingface.co/spaces
- Clone Space repo and init Git LFS. Copy Sparrow UI files. We are using config.toml from config folder, when deploying Docker container on Hugging Face Spaces, it can't read from standard .streamlit folder
git lfs install- Add these files to LFS config
git lfs track "assets/ab.png"
git lfs track "docs/image/receipt_00001.png"
git lfs track "docs/image/receipt_00002.png"
git lfs track "docs/image/receipt_00003.png"
git lfs track "docs/image/w_invoice1.png"- Commit and push code to Hugging Face Space, follow Space instructions. Docker container will be deployed automatically. Space example:
https://huggingface.co/spaces/katanaml-org/sparrow-ui- Sparrow UI will be accessible by URL, you can get it from Hugging Face Space info. For example:
https://katanaml-org-sparrow-ui.hf.spaceAuthor
License
Licensed under the Apache License, Version 2.0. Copyright 2020-2022 Katana ML, Andrej Baranovskij. Copy of the license.
