CoolFace
Apppublic

chwellofficial/nt360Slides

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes
warm_fastembed_cache.py24 linesDownload Raw Back to scripts
1from pathlib import Path2import sys3 4 5FASTAPI_ROOT = Path(__file__).resolve().parents[1]6if str(FASTAPI_ROOT) not in sys.path:7    sys.path.insert(0, str(FASTAPI_ROOT))8 9 10from services.icon_finder_service import ICON_FINDER_SERVICE11 12 13def main() -> None:14    if not ICON_FINDER_SERVICE.ensure_initialized():15        raise RuntimeError("Failed to prepare fastembed cache for icon search")16 17    print(18        f"Fastembed cache prepared at {ICON_FINDER_SERVICE.cache_directory}"19    )20 21 22if __name__ == "__main__":23    main()24