Spaces:
Paused
Paused
metadata
title: AI Text Summarizer
emoji: 📝
colorFrom: blue
colorTo: green
sdk: docker
app_file: app.py
pinned: false
AI_Summarizer
Workflows
- Update Config.yaml
- Update params.yaml
- Update entity
- Update the configuration manager in the src config
- Update the components
- Update the pipeline
- Update the main.py
- Update the app.py
Hugging Face Spaces runtime notes
- The app now sets Hugging Face cache paths at startup:
HF_HOME=/data/cache(fallback:/tmp/hf_cache)TRANSFORMERS_CACHE=/data/cacheHF_HUB_CACHE=/data/cache/hub
- This avoids recurring corrupted tokenizer snapshots in ephemeral
/tmpcache.
Useful environment variables
MODEL_LOAD_MAX_ATTEMPTS(default3): number of startup retries for model load.MODEL_LOAD_RETRY_DELAY(default8): seconds between retries.RESET_HF_CACHE_ON_START(default0): set to1for a one-time cache reset if startup keeps failing.
Recommended recovery procedure
- Set
RESET_HF_CACHE_ON_START=1. - Trigger a new Space build/restart.
- After healthy startup, set
RESET_HF_CACHE_ON_START=0.