Dedicated service for Summarization and Sentiment of the text. For it, I use dockerized FastAPI server with simple Gradio interface. Additionally, there are lazy loading for ML models to release resources and verification to prevent bots from constantly using this service. API available through basic authentication.
You could check sevice on Huggingface Spaces
First of all you need to have Poetry
pip install poetry
git clone https://github.com/WhoKnowsWhoCares/Huggingface_TextSummary TextSummary \
cd ./TextSummary \
poetry install
Rename .env_template to .env and fill variables:
SITE_KEY, SECRET_KEY
- constants for recaptcha v2 from googleAPI_***
- constants for API authorizationCAPTCHA***
- secrets on images from ./staric/images/*PORT
- port for the service
poetry run python run.py