Repository files navigation
title
AI Text Summarizer
emoji
📝
colorFrom
blue
colorTo
green
sdk
docker
app_file
app.py
pinned
false
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/cache
HF_HUB_CACHE=/data/cache/hub
This avoids recurring corrupted tokenizer snapshots in ephemeral /tmp cache.
Useful environment variables
MODEL_LOAD_MAX_ATTEMPTS (default 3): number of startup retries for model load.
MODEL_LOAD_RETRY_DELAY (default 8): seconds between retries.
RESET_HF_CACHE_ON_START (default 0): set to 1 for 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.
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
You can’t perform that action at this time.