cellmap_flow.models.hf_catalog
The cellmap models published on the Hugging Face Hub, for the dashboard’s picker.
list_huggingface_models answers from a cache file under
~/.cellmap_flow once there is one, so opening the dashboard does not
query the Hub each time; refresh_huggingface_models rebuilds it. Each
model is keyed by its repo id, with the metadata.json it publishes.
Attributes
Functions
|
List available Hugging Face models, using cache if available. |
|
Force refresh the Hugging Face models cache. |
Module Contents
- cellmap_flow.models.hf_catalog.HUGGING_FACE_ORGS_NAME = 'cellmap'
- cellmap_flow.models.hf_catalog.HF_CACHE_DIR
- cellmap_flow.models.hf_catalog.HF_CACHE_FILE
- cellmap_flow.models.hf_catalog.list_huggingface_models(org_name: str = HUGGING_FACE_ORGS_NAME) Dict[str, Any]
List available Hugging Face models, using cache if available.
- Parameters:
org_name – Hugging Face organization name to filter models (default: “cellmap”)
- Returns:
A dict mapping model IDs to their metadata
- cellmap_flow.models.hf_catalog.refresh_huggingface_models(org_name: str = HUGGING_FACE_ORGS_NAME) Dict[str, Any]
Force refresh the Hugging Face models cache.